@sankalp ...You seems to be right & also u told u like trie..so could u elaborate the approach given by you by giving some example algo or code..
although hastable/hashmap..is also alternative of such problem but wants to see your explanation about this question .because a problem can be solved by many ways but only best way so Explain with Example Thanks Shashank -- 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.