Available question text
Find the longest word in the list such that every prefix (built left-to-right by adding one character) is also present in the list; if multiple words tie for length, return the lexicographically smallest, otherwise return an empty string.
Related questions
Continue with questions that share topics or the same question type.
- Longest Word in Dictionary through Deleting
Coding
- Longest Word With All Prefixes
Coding
- Alien Dictionary
Coding · Array · Breadth-First Search · Depth-First Search
- Alien Dictionary (hard problem from leetcode)
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 720. Longest Word in Dictionary
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source