โ† Amazon questions

Kth Largest in Stream

Filed under Amazon

Design a class to find the Kth largest element in a stream of numbers. The class should support an 'add' method that adds a number to the stream and returns the current Kth largest element.

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.