Skip to content

Commit 8d068c8

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 947ff7f commit 8d068c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data_structures/sliding_window/fixed_size_window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def max_sum_subarray(arr: list[int], k: int) -> int:
4242
if len(arr) < k:
4343
raise ValueError("Array length must be at least as large as the window size.")
4444

45-
max_sum = float('-inf')
45+
max_sum = float("-inf")
4646
window_sum = sum(arr[:k])
4747
max_sum = max(max_sum, window_sum)
4848

0 commit comments

Comments
 (0)