标签:get 青蛙跳 off 思路 跳台阶 describe 两种 scribe des
题目描述
public class Solution {
public int JumpFloor(int target) {
if(target==-1){
return 0;
}else if(target==1){
return 1;
}else if(target==2){
return 2;
}else{
return JumpFloor(target-1)+JumpFloor(target-2);
}
}
}
标签:get 青蛙跳 off 思路 跳台阶 describe 两种 scribe des
原文地址:https://www.cnblogs.com/blzm742624643/p/12230441.html