mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 16:01:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -4,10 +4,10 @@
|
||||
|
||||
<p>If the index is on the left edge of the array, then the left sum is <code>0</code> because there are no elements to the left. This also applies to the right edge of the array.</p>
|
||||
|
||||
<p>Return <em>the <strong>leftmost pivot index</strong></em>. If no such index exists, return -1.</p>
|
||||
<p>Return <em>the <strong>leftmost pivot index</strong></em>. If no such index exists, return <code>-1</code>.</p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> nums = [1,7,3,6,5,6]
|
||||
@@ -18,7 +18,7 @@ Left sum = nums[0] + nums[1] + nums[2] = 1 + 7 + 3 = 11
|
||||
Right sum = nums[4] + nums[5] = 5 + 6 = 11
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> nums = [1,2,3]
|
||||
@@ -26,7 +26,7 @@ Right sum = nums[4] + nums[5] = 5 + 6 = 11
|
||||
<strong>Explanation:</strong>
|
||||
There is no index that satisfies the conditions in the problem statement.</pre>
|
||||
|
||||
<p><strong>Example 3:</strong></p>
|
||||
<p><strong class="example">Example 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> nums = [2,1,-1]
|
||||
|
Reference in New Issue
Block a user