Kth largest element in a stream

0
Remix

Values arrive one by one. After each value, return the kth largest value seen so far. It was framed as a product catalog that must report its top items.

AmazonCodingLast asked Aug 2026
No answer yet. Write the first one; the best answer gets endorsed.