comefrom: <awangdev>55. Jump Game_3.java
code: 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];
      }
masked: public boolean var_0 ( int [ ] var_1 ) {
    if ( var_1 == null || var_1 . length == 0 ) return true ;
    int var_2 = var_1 . length ;
    boolean [ ] var_3 = new boolean [ var_2 ] ;
    var_3 [ 0 ] = true ;
    for ( int var_4 = 1 ;
    var_4 < var_2 ;
    var_4 ++ ) {
      var_3 [ var_4 ] = false ;
      for ( int var_5 = 0 ;
      var_5 < var_4 ;
      var_5 ++ ) {
        if ( var_3 [ var_5 ] && var_5 + var_1 [ var_5 ] >= var_4 ) {
          var_3 [ var_4 ] = true ;
          break ;
        }
      }
    }
    return var_3 [ var_2 - 1 ] ;
  }
  