Groups
Category
When a segment tree supports multiple range updates, you must define how lazy tags compose, because the order of operations matters and composition is not commutative.
A segment tree is a complete binary tree that stores information about array intervals to answer range queries and support point updates in O(log n).