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 0974ec0 commit a63ccd0Copy full SHA for a63ccd0
project_euler/problem_345/sol1.py
@@ -73,7 +73,7 @@ def solve(arr: NDArray, row: int, cols: set[int], cache: dict[str, int]) -> int:
73
np.int64(5)
74
"""
75
76
- cache_id = f"{row_ind}, {sorted(include_set)}"
+ cache_id = f"{row}, {sorted(cols)}"
77
if cache_id in cache:
78
return cache[cache_id]
79
0 commit comments