Skip to content

Commit faf63d0

Browse files
authored
Update restore-the-array.py
1 parent a5922e0 commit faf63d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/restore-the-array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ def numberOfArrays(self, s, k):
2121
curr = 10*curr + int(s[j])
2222
if curr > k:
2323
break
24-
dp[i%len(dp)] = (dp[i%len(dp)] + dp[(j+1)%len(dp)]) % MOD
24+
dp[i%len(dp)] = (dp[i%len(dp)] + dp[(j+1)%len(dp)])%MOD
2525
return dp[0]

0 commit comments

Comments
 (0)