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

Автор inception_95, история, 7 лет назад, По-английски

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?

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