โ† Amazon questions

Top K trending words in a large file

Filed under Amazon

Given a stream of words, find the top K most frequently occurring words. Return them ordered by frequency descending, and alphabetically ascending for ties.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.