|[41. First Missing Positive](https://leetcode.com/problems/first-missing-positive/)|[Solution](https://.com/fluency03/leetcode-java/blob/master/src/FirstMissingPositive41.java)| Hard |
101
101
|[42. Trapping Rain Water](https://leetcode.com/problems/trapping-rain-water/)|[Solution](https://.com/fluency03/leetcode-java/blob/master/src/TrappingRainWater42.java)| Hard |
102
102
|[44. Wildcard Matching](https://leetcode.com/problems/wildcard-matching/)|[Solution](https://.com/fluency03/leetcode-java/blob/master/src/WildcardMatching44.java)| Hard |
103
+
|[45. Jump Game II](https://leetcode.com/problems/jump-game-ii/)|[Solution](https://.com/fluency03/leetcode-java/blob/master/src/JumpGameII45.java)| Hard |
103
104
|[46. Permutations](https://leetcode.com/problems/permutations/)|[Solution](https://.com/fluency03/leetcode-java/blob/master/src/Permutations46.java)| Medium |
104
105
|[47. Permutations II](https://leetcode.com/problems/permutations-ii/)|[Solution](https://.com/fluency03/leetcode-java/blob/master/src/PermutationsII47.java)| Medium |
105
106
|[48. Rotate Image](https://leetcode.com/problems/rotate-image/)|[Solution](https://.com/fluency03/leetcode-java/blob/master/src/RotateImage48.java)| Medium |
Original file line number
Diff line number
Diff line change
@@ -0,0 +1,50 @@
1
+
/**
2
+
* Given an array of non-negative integers, you are initially positioned at
3
+
* the first index of the array.
4
+
*
5
+
* Each element in the array represents your maximum jump length at that position.
6
+
*
7
+
* Your goal is to reach the last index in the minimum number of jumps.
8
+
*
9
+
* Example:
10
+
* Input: [2,3,1,1,4]
11
+
* Output: 2
12
+
* Explanation: The minimum number of jumps to reach the last index is 2.
13
+
* Jump 1 step from index 0 to 1, then 3 steps to the last index.
14
+
*
15
+
* Note:
16
+
* You can assume that you can always reach the last index.
0 commit comments