摘要: 链接:https://leetcode-cn.com/problems/qing-wa-tiao-tai-jie-wen-ti-lcof/ 代码: class Solution { public: int numWays(int n) { std::vector<int> vec = {1, 1}; 阅读全文
posted @ 2020-02-17 16:57 景云ⁿ 阅读(98) 评论(0) 推荐(0)
摘要: 链接:https://leetcode-cn.com/problems/fei-bo-na-qi-shu-lie-lcof/ 代码: class Solution { public: int fib(int n) { std::vector<int> vec = {0, 1}; for(int i  阅读全文
posted @ 2020-02-17 16:50 景云ⁿ 阅读(74) 评论(0) 推荐(0)