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. At each spot in the array, we have 3 options. The code tries all 3 paths for each spot in the array. If any of them lead to a solution, we return true, otherwise, false.
Java 1D Array (Part 2)
You are viewing a single comment's thread. Return to all comments →
Hi. At each spot in the array, we have 3 options. The code tries all 3 paths for each spot in the array. If any of them lead to a solution, we return true, otherwise, false.
tries to take m steps right.
tries to take 1 step right.
tries to take 1 step left.
HackerRank solutions.