Virtual_Contestant's blog

By Virtual_Contestant, history, 6 years ago, In English

Hello everyone, How do I do this question on CSES involving point updates using merge sort tree ONLY? https://cses.fi/problemset/task/1144

»
6 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

If you are using c++, then you can use gnu pbds. It makes things really easy.

»
6 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

there's an Editorial for CSES Range Queries section . you can also refer to my comment if you want to solve it using bit .