//我又来水了,跳台阶那个是斐波那契数列 #
class Solution {
public:
    int jumpFloor(int number) {
        
        int fio[40]={1,1,2};
        for(int i=3;i<=number;i++)
            fio[i]=fio[i-1]+fio[i-2];
        return fio[number];
    }
};
2020-04-27
在牛客打卡6天,今天学习:刷题 3 道/代码提交 3 次
全部评论

相关推荐

野猪不是猪🐗:我assume that你must技术aspect是solid的,temperament也挺good的,however面试不太serious,generally会feel style上不够sharp
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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