Given a nums, find the leftmost middleIndex such that the sum of the elements strictly to the left of middleIndex equals the sum of the elements strictly to the right of middleIndex.
If middleIndex is middleIndex is equal to nums.length
Return the leftmost middleIndex that satisfies these conditions, or
Note: This question is identical to Pivot Index.
Constraints:
nums.length
nums[i]
Given a nums, find the leftmost middleIndex such that the sum of the elements strictly to the left of middleIndex equals the sum of the elements strictly to the right of middleIndex.
If middleIndex is middleIndex is equal to nums.length
Return the leftmost middleIndex that satisfies these conditions, or
Note: This question is identical to Pivot Index.
Constraints:
nums.length
nums[i]