Segment Tree
Build: O(n).
Point update: O(log n).
Range query: O(log n) for standard segment-tree operations.
Uses O(n) memory, commonly around 4n for a recursive implementation.
Useful for dynamic range sum, min, max, and similar associative queries.