Here's the link to my solution : http://www.codechef.com/viewsolution/3243656 i saw some accepted solutions which were the same except that they used O(n^2) techniques for reversing. I can't get why I am getting a TLE when my solution works much better . Any help appreciated :)
↧