Range Sum Query: Immutable then Mutable (with updates)

Asked at Moloco · Coding Questions · Difficulty: Medium · Last asked Jul 15, 2026

You need to implement the logic for these operations; assume the caller will invoke `update` and `sumRange` multiple times.

Loading the problem…