public class Solution {
public int jump(int[] A) {
// Start typing your Java solution below
// DO NOT write main() function
if(A==null)return 0;
int len = A.length;
int now = len - 1;
int count = 0;
while(now != 0){
for(int i = 0; i < now; i++){
if(A[i]>=now-i){
count++;
now = i;
break;
}
}
}
return count;
}
}
从终点往回跳