Maximum Contiguous Subarray Dynamic Programming In C