Returns the largest sum of contiguous integers in the array
For e.g.
If the input is (-2, -3, 4, -1, -2, 1, 5, -3), the largest sum is 7.
It is the largest and not the biggest, i.e. consider taking more number of elements continuously.
For e.g.
If the input is (-2, -3, 4, -1, -2, 1, 5, -3), the largest sum is 7.
It is the largest and not the biggest, i.e. consider taking more number of elements continuously.
No comments:
Post a Comment