Skip to content

Commit 7c04347

Browse files
aQuaaQua
aQua
authored and
aQua
committed
639 wrong answer
1 parent d9ff3ef commit 7c04347

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Algorithms/0639.decode-ways-ii/decode-ways-ii.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func two(s string) int {
5454
if s[1] == '*' {
5555
return 15
5656
}
57-
if '1' <= s[1] && s[1] <= '6' {
57+
if '0' <= s[1] && s[1] <= '6' {
5858
return 2
5959
}
6060
return 1

Algorithms/0639.decode-ways-ii/decode-ways-ii_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ func Test_Problem0639(t *testing.T) {
2727

2828
qs := []question{
2929

30+
question{
31+
para{
32+
"*********",
33+
},
34+
ans{
35+
291868912,
36+
},
37+
},
38+
3039
question{
3140
para{
3241
"*1*1*0",

0 commit comments

Comments
 (0)