Search
⌘K

Leetcode 720. Longest Word in Dictionary

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.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.