Java 1D Array (Part 2)

  • + 1 comment

    Hi, I'm confused with the value at current index eg: test case 1 5 3 1 0 0 0 0 --> I can leap to i+1 || i+3(leap) -- if arr[i+3]||[i+1]==0. i dont see that if i start at index 0 and it has a value 1(not a constraint basedon the question), does'nt make a move