← Cisco questions

Kth Largest Element in a Stream

Filed under Cisco · Also reported at Airtel, Arcesium, Cashfree Payments, Intuit, TBO

Design a class KthLargest that maintains a stream of numbers and returns the kth largest element after each addition.

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 Cisco questions

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