Dumbledore's blog

By Dumbledore, history, 8 years ago, In English

I have a problem were I need to answer two kinds of queries. The first query is to change the value of number at index i of the array to x. The second one is to find the number of elements lesser than x in (index) range [0, r]. Could you help me on this?
Thank you in advance.

  • Vote: I like it
  • +1
  • Vote: I do not like it

»
8 years ago, # |
  Vote: I like it +1 Vote: I do not like it
»
8 years ago, # |
  Vote: I like it 0 Vote: I do not like it

You must read about Index Trees.

»
8 years ago, # |
  Vote: I like it +1 Vote: I do not like it