Skip to content

Commit cf216ed

Browse files
author
杨世超
committed
Update 0091. 解码方法.md
1 parent c07e2ab commit cf216ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Solutions/0091. 解码方法.md

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

2121
状态转移方程可以写为:
2222

23-
$dp[i] += \left\{ \begin{array} \ dp[i-1] & s[i] \ne 0 \\ dp[i-2] & s[i-1] \ne 0,s[i-1:i] \le 26 \end{array}\right.$
23+
$dp[i] += \left\{ \begin{array} \ dp[i-1] & s[i] \ne 0 \cr dp[i-2] & s[i-1] \ne 0,s[i-1:i] \le 26 \end{array}\right.$
2424

2525
现在考虑初始边界条件。字符串为空时,只有一个翻译方案,翻译为空字符串,即 dp[0] = 1。
2626

0 commit comments

Comments
 (0)