We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 477b2c2 commit 3782829Copy full SHA for 3782829
project_euler/problem_33/sol1.py
@@ -23,17 +23,17 @@ def isDigitCancelling(num, den):
23
return True
24
25
26
-def solve(digit_len: int) -> str:
+def solution(digit_len: int) -> str:
27
"""
28
- >>> solve(2)
+ >>> solution(2)
29
'16/64 , 19/95 , 26/65 , 49/98'
30
- >>> solve(3)
+ >>> solution(3)
31
32
- >>> solve(4)
+ >>> solution(4)
33
34
- >>> solve(0)
+ >>> solution(0)
35
''
36
- >>> solve(5)
+ >>> solution(5)
37
38
39
solutions = []
@@ -52,4 +52,4 @@ def solve(digit_len: int) -> str:
52
53
54
if __name__ == "__main__":
55
- print(solve(2))
+ print(solution(2))
0 commit comments