We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55a9a41 commit edf973fCopy full SHA for edf973f
1 file changed
project_euler/problem_164/sol1.py
@@ -7,9 +7,6 @@
7
consecutive digits of n have a sum greater than 9?
8
9
Brute-force recursive solution with caching of intermediate results.
10
-
11
->>> solution(10)
12
-21838806
13
"""
14
15
@@ -46,6 +43,8 @@ def solution(n_digits: int = 20) -> int:
46
43
47
44
>>> solution(2)
48
45
+ >>> solution(10)
+ 21838806
49
50
sum_max = 9
51
cache: dict[str, int] = {}
0 commit comments