Successive adding of char to get the longest word in the dictionary

Posted by AlgoMan on Stack Overflow See other posts from Stack Overflow or by AlgoMan
Published on 2010-03-28T18:53:51Z Indexed on 2010/03/28 19:23 UTC
Read the original article Hit count: 400

Given a dictionary of words and an initial character. find the longest possible word in the dictionary by successively adding a character to the word. At any given instance the word should be valid word in the dictionary.

ex : a -> at -> cat -> cart -> chart ....

© Stack Overflow or respective owner

Related posts about data-structures

Related posts about algorithm