Pivot Index
Easy · Online assessment (OA) · Full-time
Find the pivot index where the left sum equals the right sum. I computed the total sum first, then iterated left to right maintaining a running left sum and checking if it equals the remaining right side. Quick prefix sum problem, done in a few minutes.
