Fenwick Tree · BIT · i &= i-1
unseel.com · Prefix sums · O(log n)
Index —
Sum 0
State —
BIT node
Query path
Aggregate
Final
Unseel.com · Fenwick Tree