Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

halo's blog

By halo, history, 9 years ago, In English

Here is my submission 11882474

I have taken B array for visited cells and A array for positive integers

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

»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

This is a wrong solution. You mustn't add j to B[j], and you don't need to use Array B for the solution. Just a simple variable is enough to keep your current index.