LeetCode: https://leetcode.com/problems/find-pivot-index/
Given an array of integers nums, return the pivot index where the sum of the numbers to the left equals the sum of the numbers to the right.
i
1
0
7
1
3
2
6
3
5
4
6
5
total=28
left=0
Step 1 / 5
Step 1:
Compute total sum, then scan while maintaining left sum.
Pointers: i=0
Focus: select @ [0]
total=28left=0