I am getting TLE for this problem: ANUSAR Problem - CodeChef
Don’t know why, with my understanding my solution is O(nlogn). But still TLE.
I have used the suffix array implementation in other problems, and its ok I guess.
My solution: CodeChef: Practical coding for everyone
Can anyone help me. Thanks in advance.