Build a Trie... Recursive search on trie.... This ll give you all possible interpretation of the given key....
On 8/18/11, Navneet Gupta <navneetn...@gmail.com> wrote: > Given a string containing multiple words such that spaces between words is > missing. Also, you have a dictionary containing valid words. > > Ex. "Thatwouldbefantastic" > > Output a string with proper spaces inserted. > > Output - "That would be fantastic" > > The case of words like bandwidth present can be discounted. > > -- > Regards, > Navneet > > -- > 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. > > -- Sent from my mobile device -- 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.