Search
⌘K

Leetcode 1772. Sort Features by Popularity

Given a list of feature names and customer request texts, count how many requests mention each feature (case-insensitive, counting at most once per request and handling punctuation/word boundaries). Then return the features sorted by descending mention count with ties broken lexicographically (and return the top K if requested).


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.