You are viewing a single comment's thread. Return to all comments →
A leap of 5 from index 1 will take you off the end of the array, thus you win.
[1] visited [0] we're here [0] + 1 [1] + 2 [1] + 3 [1] + 4 + 5
Seems like cookies are disabled on this browser, please enable them to open this website
Java 1D Array (Part 2)
You are viewing a single comment's thread. Return to all comments →
A leap of 5 from index 1 will take you off the end of the array, thus you win.