Successive adding of char to get the longest word in the dictionary
- by AlgoMan
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 ....