Skip to content

Latest commit

 

History

History
5 lines (5 loc) · 268 Bytes

File metadata and controls

5 lines (5 loc) · 268 Bytes

Write an efficient program to find the sum of contiguous subarray within a one-dimensional array of numbers which has the largest sum.

For Example : Array = {-2, -3, 4, -1, -2, 1, 5, -3};

Maximum contiguous sum is 7

Starting index 2

Ending index 6