← BackMark CompleteFenwick Tree (Binary Indexed Tree)Prefix sums & updates in O(log n) using bit manipulation.treesfenwickbitUpdated 2025-09-01OperationsUpdate: i+=i&-iQuery: i-=i&-iSpaceO(n)