I am getting TLE in this problem. My code is at the link https://ide.codingblocks.com/s/238638. The constraints are t<=10 and n<=100000 and the time complexity is O(N log N). I could not understand why I am getting TLE.
I am getting TLE in this problem. My code is at the link https://ide.codingblocks.com/s/238638. The constraints are t<=10 and n<=100000 and the time complexity is O(N log N). I could not understand why I am getting TLE.