2D Fenwick Tree · O(log² N) Submatrix
unseel.com · Nested BIT loops · grid prefix sums
Touched 0
Sum 0
State
Grid cell
Row walk
Col walk
Query rect
Unseel.com · 2D Fenwick Tree