题解 | #跳台阶#

跳台阶

http://www.nowcoder.com/practice/8c82a5b80378478f9484d87d1c5f12a4

//可以跑,但很耗时间(#光速逃离) public class Solution { public int jumpFloor(int target) { if(target<=0) return 0; if(target<=3) return target; return jumpFloor(target-1)+jumpFloor(target-2); } }

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务