Solution: Word Formation From a Dictionary Using Trie
Let’s solve the Word Formation From a Dictionary Using Trie problem.
We'll cover the following
Statement
Given a dictionary, find whether a given word can be formed by combining two words from the dictionary.
Constraints:
-
dictionary
-
dictionary[i]
-
word
word
andwords[i]
consist of lowercase English letters
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.