Confusion regarding time Complexity

Правка en1, от 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?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский skpro19 2017-08-16 08:16:38 343 Initial revision (published)