← Amazon questions

Find the Kth largest element in an incoming stream of numbers

Filed under Amazon

Design a class that accepts a stream of integers and returns the Kth largest element seen so far after each insertion.

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.