Given an array of non negative integers arr and a starting position start, determine if you can reach any index with a value equal to
When located at index i, you are allowed to jump to i + arr[i] or i - arr[i], provided that the destination index remains within the bounds of the array.
Return true if it is possible to reach any index where arr[i] equals false otherwise.
Constraints:
arr.length
arr[i] arr.length
start arr.length
Given an array of non negative integers arr and a starting position start, determine if you can reach any index with a value equal to
When located at index i, you are allowed to jump to i + arr[i] or i - arr[i], provided that the destination index remains within the bounds of the array.
Return true if it is possible to reach any index where arr[i] equals false otherwise.
Constraints:
arr.length
arr[i] arr.length
start arr.length