Range Sum Query - Mutable — Segment Tree / Fenwick

Create a helper that accepts corrections to single values and answers range totals, fast however calls interleave.

Segment Tree / Fenwick · Medium

More in Segment Tree / Fenwick

All algorithm problems