I thought long time ago, why std
doesn't have a segment_tree
class? so I decided to create a similar one.
My template is a class in an STD-similar way, supporting lazy propagation.
A quick example on how does it look like:
Solving RMQ problem using my template
Just like that!!
It's available on a GitHub gist
So, what is your opinion about it? and how can I improve it?
Pretty cool. Atcoder library has a lot of standard DS, you may want to take a look at those.