Spoj HORRIBLE using Treap

Revision en1, by invisible00420, 2015-07-13 19:18:45

I have solved Spoj HORRIBLE using Segment Tree.But i want to know that how can we solve it using treap.Plz can anyone tell me.

Tags treap

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English invisible00420 2015-07-13 19:18:45 193 Initial revision (published)