Question DSA-ARR-0079
HardWhich structure answers range-sum queries and single-element updates on an array, each in O(log n)?
- A.
A Fenwick (binary indexed) tree or a segment tree
- B.
A sorted array
- C.
Sign up free to see the answer and a step-by-step explanation.