@topcoder The above given algo takes care of repeated elements.. Let me know if u find a test case where its failing..
On Dec 29, 12:47 am, Tamanna Afroze <afroze...@gmail.com> wrote: > This is really an interesting problem. If it is searched from the left to > right the most possible subset is 7 and for the 8th number we have to track > from right to left. -- 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.