Jump Game III - LeetCode
Sat May 29 2021 17:11:31 GMT+0000 (Coordinated Universal Time)
Saved by @Randumkeng
Given an array of non-negative integers arr, you are initially positioned at start index of the array. When you are at index i, you can jump to i + arr[i] or i - arr[i], check if you can reach to any index with value 0. Notice that you can not jump outside of the array at any time.
https://leetcode.com/problems/jump-game-iii/
Comments