Блог пользователя Muaath_5

Автор Muaath_5, 22 месяца назад, По-английски

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?

  • Проголосовать: нравится
  • +3
  • Проголосовать: не нравится

»
22 месяца назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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