Status: IN
`pivotIndex` never computes the right sum directly; it derives it as `total - left_sum - nums[i]`, enabling O(n) time and O(1) space with a single pass after the initial `sum()`.
Source: entries/2026/06/06/find-pivot-index-solution.md
JSON