AlgoMaster Logo

Longest Word in Dictionary

words=[w, wo, wor, worl, world]
0 / 63
Phase
Initialization
Current Word
Result (Longest Word)
""
Default
Active
Visited
New / Skipped
End of Word
*
algomaster.io
Step:Start: Build a Trie from words, then DFS to find the longest word where every prefix is also a word