iceman91's blog

By iceman91, 12 years ago, In English

I tried solving Problem D during Practice using the method described in tutorial. But I keep getting runtime error. Is there a way to determine which runtime error my code is encountering or probably what's wrong with my solution? Here is a link to my submission.

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

»
12 years ago, # |
  Vote: I like it +2 Vote: I do not like it

You need to check bounds of vector when you compare threads[left][lpos] and threads[right][rpos] with threads[i][0]