Skip to content

Commit 817320b

Browse files
committed
test5
1 parent 17458f7 commit 817320b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

labs/lab_1/lab_1c.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ def max_subarray_sum(nums: list[int]) -> int:
2121
"""
2222

2323
max_current = max_global = nums[0]
24-
24+
2525
for num in nums[1:]:
2626
max_current = max(num, max_current + num)
2727
if max_current > max_global:
2828
max_global = max_current
29-
29+
3030
return max_global
3131

3232
# Example usage:

0 commit comments

Comments
 (0)