Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 422 Bytes

File metadata and controls

5 lines (3 loc) · 422 Bytes

Maximum Subarray Problem

In computer science, the maximum subarray problem is the task of finding the contiguous subarray within a one-dimensional array, a[1...n], of numbers which has the largest sum. Formally, the task is to find with, such that the sum is maximal. The array usually contains both positive and negative numbers along with 0.