Challenge: Find All Words Stored in Trie

Try to solve the Find All Words Stored in Trie problem.

We'll cover the following

Statement

Given a trie data structure representing a list of words, implement a function that finds and returns all words stored in the trie.

Constraints:

  • 00\leq words.length 103\leq 10^3

  • 1 1\leq words[i].length 102\leq10^2

  • All words[i] consist of lowercase English letters.

Examples

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.