Skip to content

Commit fa1160d

Browse files
committed
Runtime: 48 ms (Top 59.57%) | Memory: 14.1 MB (Top 30.54%)
1 parent 43420c5 commit fa1160d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/algorithms/D/Decode Ways/Decode Ways.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Runtime: 48 ms (Top 59.57%) | Memory: 14.1 MB (Top 30.54%)
12
class Solution:
23
def numDecodings(self, s: str) -> int:
34
if s[0] == '0' or '00' in s:
@@ -39,4 +40,4 @@ def numDecodings(self, s: str) -> int:
3940
else:
4041
num = dp[i-1]
4142
dp.append(num)
42-
return dp[l-1]
43+
return dp[l-1]

0 commit comments

Comments
 (0)