Lazy Propagation from Efficient and easy segment tree

Revision en1, by 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 :


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


  Rev. Lang. By When Δ Comment
en1 English inception_95 2018-01-10 19:43:32 391 Initial revision (published)