Atkiya's blog

By Atkiya, history, 3 years ago, In English

I'm getting TLE for my solution of this 616D - Longest k-Good Segment problem and here's my solution link: https://ideone.com/fork/mFxA7g How can I fix this? Also, here's my submission link: 219228830

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
3 years ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

This code is O(N^2) i think

»
3 years ago, hide # |
Rev. 3  
Vote: I like it 0 Vote: I do not like it

.