Skip to content

Commit 76879a6

Browse files
committed
Runtime: 2740 ms (Top 30.44%) | Memory: 19.5 MB (Top 65.22%)
1 parent 0d6ffa9 commit 76879a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/algorithms/C/Count Number of Texts/Count Number of Texts.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Runtime: 2740 ms (Top 30.44%) | Memory: 19.5 MB (Top 65.22%)
12
class Solution(object):
23
def countTexts(self, pressedKeys):
34
"""
@@ -19,4 +20,4 @@ def countTexts(self, pressedKeys):
1920
if i >= 3 and pressedKeys[i-3] == n and (n == "7" or n == "9"):
2021
dp[i+1] += dp[i-3]
2122
dp[i+1] %= mod
22-
return dp[-1]
23+
return dp[-1]

0 commit comments

Comments
 (0)