@Anup: How splay trees come into picture here?? I think TRIE or Hashtable will work out.
But it is difficult to conceive the TRIE solutions and explain it to the Interviewer .so i am looking for something else better and concrete one. On 29 November 2011 08:50, Anup Ghatage <[email protected]> wrote: > Splay trees > > On Tue, Nov 29, 2011 at 10:07 PM, kumar raja <[email protected]>wrote: > >> You get a stream of words, find top m frequent words. >> >> What are all the possible approaches for this problem ?? >> >> -- >> Regards >> Kumar Raja >> M.Tech(SIT) >> IIT Kharagpur, >> [email protected] >> >> >> -- >> 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. >> > > > > -- > Anup Ghatage > > -- > 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. > -- Regards Kumar Raja M.Tech(SIT) IIT Kharagpur, [email protected] -- 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.
