<awangdev>55. Jump Game_2.java
public boolean canJump(int[] nums) {
        if (nums == null || nums.length == 0) return true;
        int n = nums.length, lastPos = n - 1;
        for (int i = lastPos; i >= 0; i--) { 
            if (i + nums[i] >= lastPos) lastPos = i;
        }
        return lastPos == 0;
    }
public boolean var_0 ( int [ ] var_1 ) {
  if ( var_1 == null || var_1 . length == 0 ) return true ;
  int var_5 = var_1 . length , var_7 = var_5 - 1 ;
  for ( int var_8 = var_7 ;
  var_8 >= 0 ;
  var_8 -- ) {
    if ( var_8 + var_1 [ var_8 ] >= var_7 ) var_7 = var_8 ;
  }
  return var_7 == 0 ;
}
