<awangdev>55. Jump Game_3.java
public boolean canJump(int[] nums) {
        if (nums == null || nums.length == 0) return true;
        int n = nums.length;
        boolean[] dp = new boolean[n];
        dp[0] = true;
        
        for (int i = 1; i < n; i++) {
            dp[i] = false;
            for (int j = 0; j < i; j++) { 
                if (dp[j] && j + nums[j] >= i) {
                    dp[i] = true;
                    break;
                }
            }
        }
        
        return dp[n - 1];
    }
public boolean var_0 ( int [ ] var_1 ) {
  if ( var_1 == null || var_1 . length == 0 ) return true ;
  int var_5 = var_1 . length ;
  boolean [ ] var_7 = new boolean [ var_5 ] ;
  var_7 [ 0 ] = true ;
  for ( int var_9 = 1 ;
  var_9 < var_5 ;
  var_9 ++ ) {
    var_7 [ var_9 ] = false ;
    for ( int var_10 = 0 ;
    var_10 < var_9 ;
    var_10 ++ ) {
      if ( var_7 [ var_10 ] && var_10 + var_1 [ var_10 ] >= var_9 ) {
        var_7 [ var_9 ] = true ;
        break ;
      }
    }
  }
  return var_7 [ var_5 - 1 ] ;
}
