kushagra1998's blog

By kushagra1998, history, 5 years ago, In English

What is the best way to perform queries on set such that each query would be either of type : 1. Add an element to a set. 2. Increase all elements of the set by some constant. 3. Print the K'th largest element from the set.

Any tutorials would be helpful.

Also if there is another query(including the above 3) remove an element from set, then what can be the best solution?

Full text and comments »

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