Getting TLE on SPOJ QMAX3VN problem (treaps)

Revision en1, by faceless_man, 2016-10-07 00:45:10

Hello All, I am getting TLE for the problem QMAX3VN Here is My code. I am using Implicit treap with split and merge operations. please someone look into my code and tell me what can i do to avoid TLE.code

Tags implicit treap, merge, split

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English faceless_man 2016-10-07 00:45:10 340 Initial revision (published)