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
Hello All, I was solving the following question on codeforces .. But the thing is I am getting memory limit exceeded on test 2 on online judge .. here is my code. ..... can anyone suggest any better way out ? thanks... problem : Problem K My Code : Code