AlgoMaster Logo

Longest Word in Dictionary

words=[w, wo, wor, worl, world]
0 / 63
algomaster.io
Step:Start: Build a Trie from words, then DFS to find the longest word where every prefix is also a word