I have implemented an 2N^2logN solution for this problem which obviously giving TLE. I just want to know will an O(NlogN) solution is enough for this problem or do I need fast IO too?
↧
I have implemented an 2N^2logN solution for this problem which obviously giving TLE. I just want to know will an O(NlogN) solution is enough for this problem or do I need fast IO too?