Maximum sub sub sequence ?

Given an array with both positive and negative elements find the sub sequence(may or may not be contagious) with the maximum sum.

Just take all positive values in the array.

If the above does not answer your question then your question may not be correctly specified.

3 Likes
//