update 0070.爬楼梯完全背包版本:添加复杂度分析
This commit is contained in:
parent
6e62049cd3
commit
84b84e5bf1
|
|
@ -101,6 +101,11 @@ public:
|
|||
};
|
||||
```
|
||||
|
||||
* 时间复杂度: O(nm)
|
||||
* 空间复杂度: O(n)
|
||||
|
||||
|
||||
|
||||
代码中m表示最多可以爬m个台阶,代码中把m改成2就是本题70.爬楼梯可以AC的代码了。
|
||||
|
||||
## 总结
|
||||
|
|
|
|||
Loading…
Reference in New Issue