Time complexity of Ruby Language

Revision en2, by SezoC, 2020-04-02 11:43:59

Today I tried to solve this 219C - Color Stripe 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)

Tags ruby, time complexity, time limit exceeded

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English SezoC 2020-04-02 11:43:59 29
en1 English SezoC 2020-04-02 11:38:39 257 Initial revision (published)