6 points · by bytego · 6mo ago · 0 comments
No comments yet.
Segment Tree — Algorhythm
Build a balanced binary tree where each node holds the aggregate of a range — any range decomposes into O(log N) canonical pieces, so queries and point updates are both O(log N).
Algorhythm