← Questions

Kth largest element in a stream

0
AmazonCodingLast asked Aug 2026

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.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding