update 0070.爬楼梯完全背包版本:添加复杂度分析

This commit is contained in:
Yuhao Ju
2023-04-11 11:46:51 +08:00
committed by GitHub
parent 6e62049cd3
commit 84b84e5bf1

View File

@ -101,6 +101,11 @@ public:
};
```
* 时间复杂度: O(nm)
* 空间复杂度: O(n)
代码中m表示最多可以爬m个台阶代码中把m改成2就是本题70.爬楼梯可以AC的代码了。
## 总结