Solution Review: Word Formation from a Dictionary Using a Trie
Let’s solve the Word Formation From a Dictionary Using Trie problem.
Statement
Given a dictionary, find whether a given word can be formed by combining two words from the dictionary.
Constraints:
-
dictionary
-
dictionary[i]