2022-06-09
Description
Input: nums = [2,3,1,1,4]
Output: 2
Explanation: The minimum number of jumps to reach the last index is 2. Jump 1 step from index 0 to 1, then 3 steps to the last index.Input: nums = [2,3,0,1,4]
Output: 2Solution
Approach #0
Description
Solution
Approach #0
Last updated
