Skip to content

Commit 433ec6b

Browse files
Update minimum_Jumps.java
1 parent 9fc3a9e commit 433ec6b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

GeeksForGeeks/minimum_Jumps.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
1+
/*
2+
Given an array of integers where each element represents the max number of steps that can be made forward from that element.
3+
Return the minimum number of jumps to reach the end of the array. If an element is 0, it cannot move through that element. If the end isn’t reachable, return -1.
4+
*/
25
import java.util.*;
36

47
public class minimum_Jumps {

0 commit comments

Comments
 (0)