Skip to content

Commit 0a37a1f

Browse files
committed
Runtime: 1092 ms (Top 41.44%) | Memory: 70.6 MB (Top 63.39%)
1 parent 1fbb79d commit 0a37a1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/algorithms/D/Distinct Subsequences/Distinct Subsequences.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Runtime: 1092 ms (Top 41.44%) | Memory: 70.6 MB (Top 63.39%)
12
class Solution:
23
def numDistinct(self, s: str, t: str) -> int:
34
if len(t) > len(s):
@@ -13,4 +14,4 @@ def numDistinct(self, s: str, t: str) -> int:
1314
if s[j] == t[i]:
1415

1516
dp[i][j] += dp[i + 1][j + 1]
16-
return dp[0][0]
17+
return dp[0][0]

0 commit comments

Comments
 (0)