running-sum-prefix-suffix-pattern

Status: IN

Prefix-suffix sum problems use a single-pass running accumulator with the identity `rightSum = total - leftSum - current` to avoid building separate prefix and suffix arrays.

Source: entries/2026/06/06/left-and-right-sum-differences-solution.md

JSON