ismail_2311's blog

By ismail_2311, history, 4 years ago, In English

I tried finding the editorial for the below problem, but was unable to find one which I could understand. Can someone explain the solution for it?

https://www.spoj.com/problems/CNTINDX2/

  • Vote: I like it
  • 0
  • Vote: I do not like it

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

First insert all numbers, than build segment tree, which vertex has a Treap of a segment, that's all i think