When submitting a solution in C++, please select either C++14 (GCC 6-32) or C++17 (GCC 7-32) as your compiler. ×

rahulbiswas876's blog

By rahulbiswas876, history, 3 years ago, In English

Hello CF Community, recently I participated in on-campus placement and I came across this question. The contest is over so here I am posting it to get hits or solutions.

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

»
3 years ago, # |
  Vote: I like it +9 Vote: I do not like it

At least, it can be solved using Treap.