Skip to content

Commit edf973f

Browse files
Update sol1.py
1 parent 55a9a41 commit edf973f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

project_euler/problem_164/sol1.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
consecutive digits of n have a sum greater than 9?
88
99
Brute-force recursive solution with caching of intermediate results.
10-
11-
>>> solution(10)
12-
21838806
1310
"""
1411

1512

@@ -46,6 +43,8 @@ def solution(n_digits: int = 20) -> int:
4643
4744
>>> solution(2)
4845
45
46+
>>> solution(10)
47+
21838806
4948
"""
5049
sum_max = 9
5150
cache: dict[str, int] = {}

0 commit comments

Comments
 (0)