Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
s50600822 committed Oct 29, 2023
1 parent b5c5e10 commit 78706a7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import java.util.Arrays;

/**
* https://leetcode.com/problems/jump-game/
* <a href="https://leetcode.com/problems/jump-game/">Desc</a>
*/
public class Jumping {
final static int NO_WAY = Integer.MAX_VALUE - 1;
final static int NO_WAY = 10000;

public static boolean canJump(int[] nums) {
int[] memo = new int[nums.length];
Expand All @@ -16,7 +16,7 @@ public static boolean canJump(int[] nums) {
return (step != NO_WAY);
}

private static int minJumps(int steps[], int begin, int dest, int[] memo) {
private static int minJumps(int[] steps, int begin, int dest, int[] memo) {
if (begin == dest)
return 0;
if (steps[begin] == 0)
Expand Down

0 comments on commit 78706a7

Please sign in to comment.