Skip to content

Commit bf070ff

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 569ba08 commit bf070ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

project_euler/problem_345/sol1.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ def solve(arr: NDArray, row: int, cols: set[int], cache: dict[str, int]) -> int:
8585
new_cols = cols - {col}
8686
max_sum = max(
8787
max_sum,
88-
int(arr[row, col]) + solve(arr=arr, row=row + 1, cols=new_cols, cache=cache),
88+
int(arr[row, col])
89+
+ solve(arr=arr, row=row + 1, cols=new_cols, cache=cache),
8990
)
9091
cache[cache_id] = max_sum
9192
return max_sum

0 commit comments

Comments
 (0)