Skip to content

Commit f03cdc3

Browse files
Update sol1.py
1 parent 3ec91f3 commit f03cdc3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Diff for: project_euler/problem_122/sol1.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,10 @@
2929
Find sum_{k = 1}^200 m(k).
3030
3131
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.
32+
for each number can be formed by increasing the largest element.
3433
3534
References:
3635
- https://en.wikipedia.org/wiki/Addition_chain
37-
38-
>>> solution(14)
39-
45
4036
"""
4137

4238

@@ -71,6 +67,8 @@ def solution(n: int = 200) -> int:
7167
0
7268
>>> solution(2)
7369
1
70+
>>> solution(14)
71+
45
7472
>>> solution(15)
7573
50
7674
"""

0 commit comments

Comments
 (0)