Maximum subarray problem
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, where,

Exampleโ
The list usually contains both positive and negative numbers along
with 0. For example, for the array of
values โ2, 1, โ3, 4, โ1, 2, 1, โ5, 4 the contiguous subarray
with the largest sum is 4, โ1, 2, 1, with sum 6.
Solutionsโ
- Brute Force solution
O(n^2): bfMaximumSubarray.js - Divide and Conquer solution
O(n^2): dcMaximumSubarraySum.js - Dynamic Programming solution
O(n): dpMaximumSubarray.js