Write a program which by given array of integer values (containing negative integers) finds the maximum sum of successive elements in the array.
Example:
2, 3, -6, -1, 2, -1, 6, 4, -8, 8
Gives
11
I am searching for a solution which is faster than O(N^2).
I think Kadane’s Algorithm is what you want