Need Help with SPOJ ORDERSET (using Treap)

Revision en1, by pizza_hot, 2016-10-28 22:03:47

Hi !

I 'm trying to solve This problem using Treap (After i read this great blog) but I'm getting wrong answer ,the example is right but I don't know where the bug is ,here's my code can someone tell me what's wrong :/ ?

sorry for my bad English and thanks in advance...

Tags treap, treaps, debug, advanced data structure, data structures, spoj

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English pizza_hot 2016-10-28 22:03:47 466 Initial revision (published)