โ† Amazon questions

Top K frequent numbers from a stream

Filed under Amazon

Design a class that accepts a stream of numbers as input and maintains the top K most frequent numbers seen so far.

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.