Muaath_5's blog

By Muaath_5, 22 months ago, In English

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?

  • Vote: I like it
  • +3
  • Vote: I do not like it

| Write comment?
»
22 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Pretty cool. Atcoder library has a lot of standard DS, you may want to take a look at those.