just searched, http://www.cs.ucla.edu/classes/spring04/cs32/lectures/maxSum/maxSeqSum2.pdf it gives an O(n) solution(page 2). in this case just check if MaxSum=0
On 11/17/06, Idris <[EMAIL PROTECTED]> wrote: > > > can u pls explain it?????:-) > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups-beta.google.com/group/algogeeks -~----------~----~----~----~------~----~------~--~---