Time complexity of Ruby Language

Правка en2, от SezoC, 2020-04-02 11:43:59

Today I tried to solve this 219C - Цветная полоска using ruby and my code's time complexity was 26*n but, I got a TLE (Time Limit Exceeded). Could someone explain to me the time complexity of ruby language? (My code:75217241)

Теги ruby, time complexity, time limit exceeded

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский SezoC 2020-04-02 11:43:59 29
en1 Английский SezoC 2020-04-02 11:38:39 257 Initial revision (published)