Skip to content

Commit 739a54e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 314844a commit 739a54e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

project_euler/problem_164/sol1.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,14 @@ def solve(
3232
for v in range(sum_max - prev1 - prev2 + 1):
3333
if first and v == 0:
3434
continue
35-
comb += solve(digit=digit - 1, prev1=v, prev2=prev1, sum_max=sum_max, first=False, cache=cache)
35+
comb += solve(
36+
digit=digit - 1,
37+
prev1=v,
38+
prev2=prev1,
39+
sum_max=sum_max,
40+
first=False,
41+
cache=cache,
42+
)
3643
cache[cache_str] = comb
3744
return comb
3845

0 commit comments

Comments
 (0)