Skip to content

Commit 2e62f93

Browse files
Update sol1.py
1 parent edf973f commit 2e62f93

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

project_euler/problem_164/sol1.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,8 @@ def solution(n_digits: int = 20) -> int:
4646
>>> solution(10)
4747
21838806
4848
"""
49-
sum_max = 9
5049
cache: dict[str, int] = {}
51-
ans = solve(n_digits, 0, 0, sum_max, True, cache)
52-
53-
return ans
50+
return solve(digit=n_digits, prev=0, prev2=0, sum_max=9, first=True, cache=cache)
5451

5552

5653
if __name__ == "__main__":

0 commit comments

Comments
 (0)