You are viewing a single comment's thread. Return to all comments →
The following lines from my code should prevent that from happening:
if (i < 0 || array[i] == 1) { return false; }
since they check for array out of bounds.
HackerRank solutions.
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 →
The following lines from my code should prevent that from happening:
since they check for array out of bounds.
HackerRank solutions.