inception_95's blog

By inception_95, history, 7 years ago, In English

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?

  • Vote: I like it
  • -4
  • Vote: I do not like it