Hello codeforces, I was trying to solve this problem. But i am getting TLE even after applying O(n*log(n)) solution. Here is my code. Thanx in advance.
TLE after applying line sweep algorithm.
Hello codeforces, I was trying to solve this problem. But i am getting TLE even after applying O(n*log(n)) solution. Here is my code. Thanx in advance.