Solving a Problem with a Sparse Segment Tree.
How I implemented a Sparse Segment Tree with lazy propagation.
By Thiago Felipe Bastos da Silva
I’ll show you how I ended up implementing a sparse Lazy Segment Tree to solve a problem. There is a problem on oj.uz called Monkey and Apple-trees that involves range updates and range queries, but there is a small issue: the constraints are too large to build a data structure...
[Read More]