how about suffix tree? On Thu, Aug 25, 2011 at 4:22 AM, Gaurav Menghani <[email protected]>wrote:
> Do you mean even O(1) isn't good? > > On Wed, Aug 24, 2011 at 8:43 PM, UMESH KUMAR <[email protected]> > wrote: > > Qn. Remove all duplicates words from given a line without using extra > memory > > ? > > Ex:-Hello word hello hi > > Out put:- Hello word hi > > > > -- > > 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. > > > > > > -- > Gaurav Menghani > > -- > 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. > > -- Thx, --Gopi -- 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.
