Commit dbfc2855 authored by Manuel Nores's avatar Manuel Nores
Browse files

avances en el 78

parent a2c1736c
......@@ -27,7 +27,7 @@ def coinPartition(n, restriction):
for i in range(restriction, 0, -1):
res += coinPartition(n - i, min(i, restriction, n-i))
cache[str(n) + "_" + str(restriction)] = res
cache[str(n) + "_" + str(restriction)] = res % 1000000
return res
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment