We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ec91f3 commit f03cdc3Copy full SHA for f03cdc3
project_euler/problem_122/sol1.py
@@ -29,14 +29,10 @@
29
Find sum_{k = 1}^200 m(k).
30
31
It uses the fact that for rather small n, applicable for this problem, the solution
32
-for each number
33
-can be formed by increasing the largest element.
+for each number can be formed by increasing the largest element.
34
35
References:
36
- https://en.wikipedia.org/wiki/Addition_chain
37
-
38
->>> solution(14)
39
-45
40
"""
41
42
@@ -71,6 +67,8 @@ def solution(n: int = 200) -> int:
71
67
0
72
68
>>> solution(2)
73
69
1
70
+ >>> solution(14)
+ 45
74
>>> solution(15)
75
50
76
0 commit comments