You are given a binary string s indexed from minJump and maxJump. You are initially positioned at index s[0] is guaranteed to be '0'.
In each move, you can jump from your current index i to a target index j if both of the following conditions hold:
i + minJump j i + maxJump, s.length
s[j] == '0'
Return true if you can reach index s.length false otherwise.
Constraints:
s.length
s[i] is either '0' or '1'.
s[0] == '0'
minJump maxJump s.length
You are given a binary string s indexed from minJump and maxJump. You are initially positioned at index s[0] is guaranteed to be '0'.
In each move, you can jump from your current index i to a target index j if both of the following conditions hold:
i + minJump j i + maxJump, s.length
s[j] == '0'
Return true if you can reach index s.length false otherwise.
Constraints:
s.length
s[i] is either '0' or '1'.
s[0] == '0'
minJump maxJump s.length