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 80bf74f commit 578c6fcCopy full SHA for 578c6fc
1 file changed
data_structures/arrays/maximum_subarray_sum.py
@@ -1,4 +1,4 @@
1
-def maxSubarraySum(arr: list[int]) -> int:
+def max_subarray_sum(arr: list[int]) -> int:
2
"""
3
Find the maximum sum of a subarray.
4
@@ -22,7 +22,7 @@ def maxSubarraySum(arr: list[int]) -> int:
22
23
if __name__ == "__main__":
24
arr = list(map(int, input().split(" ")))
25
- print(maxSubarraySum(arr))
+ print(max_subarray_sum(arr))
26
import doctest
27
28
doctest.testmod()
0 commit comments