<awangdev>Jump Game II_2.java
public int jump(int[] nums) {
        if (nums == null || nums.length == 0) return 0;
        int n = nums.length;
        int[] dp = new int[n];
        dp[0] = 0;
        for (int i = 1; i < n; i++) {
            dp[i] = Integer.MAX_VALUE;
            for (int j = 0; j < i; j++) {
                if (j + nums[j] >= i) dp[i] = Math.min(dp[i], dp[j] + 1);
            }
        }
        return dp[n - 1];
    }
public int sample_funcname ( int [ ] var_0 ) {
  if ( var_0 == null || var_0 . length == 0 ) return 0 ;
  int var_4 = var_0 . length ;
  int [ ] var_5 = new int [ var_4 ] ;
  var_5 [ 0 ] = 0 ;
  for ( int var_7 = 1 ;
  var_7 < var_4 ;
  var_7 ++ ) {
    var_5 [ var_7 ] = Integer . MAX_VALUE ;
    for ( int var_10 = 0 ;
    var_10 < var_7 ;
    var_10 ++ ) {
      if ( var_10 + var_0 [ var_10 ] >= var_7 ) var_5 [ var_7 ] = Math . min ( var_5 [ var_7 ] , var_5 [ var_10 ] + 1 ) ;
    }
  }
  return var_5 [ var_4 - 1 ] ;
}
