MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / max_subarray_sum.py

File max_subarray_sum.py

dynamic_programming/max_subarray_sum.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""
2The maximum subarray sum problem is the task of finding the maximum sum that can be
3obtained from a contiguous subarray within a given array of numbers. For example, given
4the array [-2, 1, -3, 4, -1, 2, 1, -5, 4], the contiguous subarray with the maximum sum

Callers

nothing calls this directly

Calls 1

max_subarray_sumFunction · 0.85

Tested by

no test coverage detected