Confusion regarding time Complexity

Revision en1, by skpro19, 2017-08-16 08:16:38

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?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English skpro19 2017-08-16 08:16:38 343 Initial revision (published)