On Jul 19, 8:00 pm, ankit sambyal <[email protected]> wrote: > @Nitish and Shubam : Since we trying to find sub sequence and not a > sub string, so if there are negative nos. in the array, just neglect > them. > Piyush's algo will work perfectly......
Piyush's algo won't work for -ve nos. Consider an array -12 -10 5.....answer should be 5 while the algo gives -7 as the answer. -- 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.
