dsa10 min read
Falling Squares — Segment Tree with Lazy Propagation & Coordinate Compression
Track the tallest stack height as squares fall onto a number line. The textbook problem for segment trees with lazy propagation, range max queries, and range-assign updates.
Read →