[1,12,-3,14,-6,3,4,-2]

Check if your approach works here. Apparently not. A subset of an array
should also be continuous, by definition.

On 10/15/07, Muntasir Azam Khan <[EMAIL PROTECTED]> wrote:
>
>
>
>
> On Oct 13, 11:39 pm, kannan <[EMAIL PROTECTED]> wrote:
> > hellow!
> >          here is the problem statement.
> > you have to find the subset having the maximum sum in the given array
> > of +ve and -ve numbers.
> > try not to follow brute force method.
>
> I'm not sure if I'm understanding the question correctly, but if you
> are looking for the subset rather than the subsequece with maximum
> sum, just taking the sum of all the positive numbers in the list is
> the answer.
>
> Regards,
> Muntasir
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to