Data Structures19 sections · 729 units
Open in CourseQuiz: Segment Trees
Test your understanding
Segment Tree Concepts
Why does lazy propagation achieve O(log n) for range updates instead of O(n)?
- A.It stops recursion early when a node's range is completely inside the update range, marking it as 'lazy' instead of updating all descendants
- B.It uses a different tree structure with fewer nodes
- C.It compresses the range into a single value
- D.It skips nodes that have value zero