Skip to content

Commit 1372675

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: dynamic_programming/max_sub_array.py

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"""
55
from __future__ import annotations
66

7+
78
def max_sub_array(a: list[int]) -> int:
89
"""
910
return the largest sum of a contiguous subarray.
@@ -31,6 +32,7 @@ def max_sub_array(a: list[int]) -> int:
3132
answer = sol[i]
3233
return answer
3334

35+
3436
if __name__ == "__main__":
3537
"""
3638
A random simulation of this algorithm.

0 commit comments

Comments
 (0)