educative.io

What if a word that can be formed by more than two words from dictionary?

challenge-4-word-formation-from-a-given-dictionary-using-a-trie__trie-advanced-trees__data-structures-for-coding-interviews-in-java.

In the above problem:
What if a word that can be formed by more than two words from dictionary?

Hi Marianne,

The challenge asks us to form a word using two words only. So, we’ll have to follow that. Even if we can form the word using more than two words we’ll try to do it using the two words only.

As in interviews too when the interviewer ask us something we first understand the question very well and then resolve it accordingly, that counts one of the skill too :slight_smile:

To form the word using more than two words can be a new seperate challenge, but whatever the challenge asks, we just tend to do it.