Lazy Propagation from Efficient and easy segment tree

Правка en1, от inception_95, 2018-01-10 19:43:32

Efficient and easy segment trees

So I was reading this blog and tried to modify the "Increment modifications, queries for maximum" for sum queries, but the query function isn't working. Here is my implementation :

Code

What's the problem? How can I fix it?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский inception_95 2018-01-10 19:43:32 391 Initial revision (published)