Stuck in http://www.spoj.com/problems/ORDERSET/
Difference between en1 and en2, changed 37 character(s)
Here is the [problem](http://www.spoj.com/problems/ORDERSET/)↵

Here is my [solution](https://pastebin.com/JQRwjSRX)↵

I tried to solve it using treaps.↵

I keep on getting WA. In another attempt I tried to store values in map for checking duplicates(i won't insert when duplicates) but I got TLE. Can anyone help me in finding out the bug. Thanks.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English hell_hacker 2017-06-29 01:23:14 37 Tiny change: 'SRX)\n\nI keep' -> 'SRX)\n\nI tried to solve it using treaps.\n\nI keep'
en1 English hell_hacker 2017-06-29 01:22:31 361 Initial revision (published)