Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 837073b

Browse files
committed
Update 0070. 爬楼梯.md
1 parent cdc0376 commit 837073b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Solutions/0070. 爬楼梯.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
###### 4. 初始条件
4444

45-
-`0` 层台阶方案数:可以看做 `1` 种方法(从 `0` 阶向上爬 `0` 阶),即 `dp[1] = 1`
45+
-`0` 层台阶方案数:可以看做 `1` 种方法(从 `0` 阶向上爬 `0` 阶),即 `dp[0] = 1`
4646
-`1` 层台阶方案数:`1` 种方法(从 `0` 阶向上爬 `1` 阶),即 `dp[1] = 1`
4747
-`2` 层台阶方案数:`2` 中方法(从 `0` 阶向上爬 `2` 阶,或者从 `1` 阶向上爬 `1` 阶)。
4848

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /