Skip to content

Commit 8e7f55b

Browse files
committed
fix comments
1 parent 3d1d616 commit 8e7f55b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: dynamic_programming/decode_ways.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'''
1+
"""
22
A message containing letters from A-Z is being encoded to numbers using the
33
following mapping:
44
'A' -> 1
@@ -7,7 +7,7 @@
77
'Z' -> 26
88
Given a non-empty string containing only digits,
99
determine the total number of ways to decode it.
10-
'''
10+
"""
1111

1212
def num_decodings(s: str):
1313
"""
@@ -38,7 +38,6 @@ def num_decodings(s: str):
3838
curr = last
3939

4040
last, second_last = curr, last
41-
4241
return last
4342

4443

0 commit comments

Comments
 (0)