Search
⌘K

Leetcode 748. Shortest Completing Word

Given a licensePlate string, find the shortest word in words that contains at least the same count of each alphabetic letter from licensePlate (case-insensitive, ignoring digits/spaces); if multiple shortest words exist, return the one that appears first.


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.