LeetCode: https://leetcode.com/problems/jump-game-ii/
You are given an array nums. Each element represents your maximum jump length. Return the minimum number of jumps to reach the last index.
i
2
0
3
1
1
2
1
3
4
4
end=0
farthest=2
jumps=0
Step 1 / 3
Step 1:
Scan current jump range [0..end], track farthest for next jump.
Pointers: i=0
Focus: select @ [0]
end=0farthest=2jumps=0