Search
⌘K

Leetcode 192. Word Frequency

Count the occurrences of each distinct lowercase word in words.txt and output each word with its frequency sorted by descending count. The input contains only lowercase letters and spaces (word counts are unique), and the solution should be expressible as a one-line Unix pipeline.

Asked at:

Meta


Question Timeline

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

Mid September, 2025

Meta

Senior

Mid September, 2025

Meta

Staff

Comments

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