We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Java 1D Array (Part 2)
You are viewing a single comment's thread. Return to all comments →
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