@Monsieur: Note that 0 is not positive so it doesn't match your stated solution requirement. Maybe you meant "non-negative" instead of "positive", or maybe you meant that the answer is 1, having sum=1.
Dave On Feb 9, 10:42 am, MONSIEUR <[email protected]> wrote: > Given: An array of integers(may be both positive and negative), we > have to find out the minimum positive sum of array(not necessarily > continuous). > > example:- {1,-5,7,10,-14,16,-17,20,21,22} > > here answer is -5,-17,22 having sum=0; -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
