Confusion regarding time Complexity
I am talking about this problem. My accepted solution is this.
If we assume that the length of the string is n, then my solution has a complexity of O(n * n) ;
Why is it not getting TLE instead?