in this question is it necessary to select atleast one element, else minimum positive sum will be 0 for each case, by selecting zero numbers as this question seems to be same as maximum positive sum in which if all elements are negative, ans is zero that is by selecting zero no of elements ??????
On Wed, Feb 9, 2011 at 10:37 PM, Rel Guzman Apaza <rgap...@gmail.com> wrote: > I think the only solution will be finding all subsets. > > 2011/2/9 MONSIEUR <monsieur....@gmail.com> > > @jalaj: text missing.....??? I think i've mentioned question >> properly.....is there any thing more u require? >> >> n Feb 9, 9:45 pm, jalaj jaiswal <jalaj.jaiswa...@gmail.com> wrote: >> > @monsieur ... text missing dude >> > >> > >> > >> > On Wed, Feb 9, 2011 at 10:12 PM, MONSIEUR <monsieur....@gmail.com> >> 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 algogeeks@googlegroups.com. >> > > To unsubscribe from this group, send email to >> > > algogeeks+unsubscr...@googlegroups.com. >> > > For more options, visit this group at >> > >http://groups.google.com/group/algogeeks?hl=en. >> > >> > -- >> > With Regards, >> > *Jalaj Jaiswal* (+919019947895) >> > Software developer, Cisco Systems >> > Final Year Undergraduate, >> > IIIT ALLAHABAD >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to algogeeks@googlegroups.com. >> To unsubscribe from this group, send email to >> algogeeks+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> >> > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- Sunny Aggrawal B-Tech IV year,CSI Indian Institute Of Technology,Roorkee -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.