public class Solution {
public int JumpFloor(int target) {
int sum = 0 ;
if(target <= 2){
return target ;
}else{
sum = JumpFloor(target - 1)+JumpFloor(target - 2);
}
return sum ;
}
}
05-14
328
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
10-14
441
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
04-30
468
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)