iamskp's blog

By iamskp, history, 11 months ago, In English

I am doing this problem. Can someone please tell me why i am getting tle verdict. My submission is in python. My submission : https://codeforces.com/contest/1283/submission/88064624

 
 
 
 
  • Vote: I like it
  • -1
  • Vote: I do not like it

»
11 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by iamskp (previous revision, new revision, compare).

»
11 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Removing from index $$$i$$$ of a list should be $$$O(n - i)$$$, so repeatedly removing from the beginning — middle of the list will cause TLE.