{"id":"pivot-index-right-sum-derived-algebraically","text":"`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()`.","truth_value":"IN","source":"entries/2026/06/06/find-pivot-index-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"pivot-index-right-sum-derived-algebraically","truth_value":"IN","reason":"premise"}]}}