Skip to content

Commit 9689795

Browse files
committed
Fix project_euler/problem_174/sol1.py
1 parent 41c328c commit 9689795

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: project_euler/problem_174/sol1.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def solution(t_limit: int = 1000000, n_limit: int = 10) -> int:
4545
for hole_width in range(hole_width_lower_bound, outer_width - 1, 2):
4646
count[outer_width * outer_width - hole_width * hole_width] += 1
4747

48-
return sum(1 for n in count.values() if 1 <= n <= 10)
48+
return sum(1 for n in count.values() if 1 <= n <= n_limit)
4949

5050

5151
if __name__ == "__main__":

0 commit comments

Comments
 (0)