mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2026-02-02 18:39:09 +08:00
Update
This commit is contained in:
@@ -3,13 +3,8 @@
|
||||
<img src="../pics/训练营.png" width="1000"/>
|
||||
</a>
|
||||
<p align="center"><strong><a href="https://mp.weixin.qq.com/s/tqCxrMEU-ajQumL1i8im9A">参与本项目</a>,贡献其他语言版本的代码,拥抱开源,让更多学习算法的小伙伴们收益!</strong></p>
|
||||
# 动态规划:以前我没得选,现在我选择再爬一次!
|
||||
|
||||
之前讲这道题目的时候,因为还没有讲背包问题,所以就只是讲了一下爬楼梯最直接的动规方法(斐波那契)。
|
||||
|
||||
**这次终于讲到了背包问题,我选择带录友们再爬一次楼梯!**
|
||||
|
||||
## 70. 爬楼梯
|
||||
# 70. 爬楼梯
|
||||
|
||||
[力扣题目链接](https://leetcode.cn/problems/climbing-stairs/)
|
||||
|
||||
@@ -36,6 +31,10 @@
|
||||
|
||||
## 思路
|
||||
|
||||
之前讲这道题目的时候,因为还没有讲背包问题,所以就只是讲了一下爬楼梯最直接的动规方法(斐波那契)。
|
||||
|
||||
**这次终于讲到了背包问题,我选择带录友们再爬一次楼梯!**
|
||||
|
||||
这道题目 我们在[动态规划:爬楼梯](https://programmercarl.com/0070.爬楼梯.html) 中已经讲过一次了,原题其实是一道简单动规的题目。
|
||||
|
||||
既然这么简单为什么还要讲呢,其实本题稍加改动就是一道面试好题。
|
||||
|
||||
Reference in New Issue
Block a user