标签:public lse bsp 多少 turn describe floor get 不同的
public class Solution {
public int JumpFloor(int target) {
if (target<=0){
return -1;
}
else if (target ==1){
return 1;
}else if (target==2){
return 2;
}else {
return JumpFloor(target-1)+JumpFloor(target-2);
}
}
}
标签:public lse bsp 多少 turn describe floor get 不同的
原文地址:https://www.cnblogs.com/hrnn/p/13359069.html