Maintain a dynamic list supporting insertions and kth-largest queries where k itself changes per query.
Unlock detailed company stats for this questionUpgrade
Maintain a dynamic list of values (such as test scores or rankings) that supports insertions and kth-largest queries, where k can be different for each query.
Example: initial list [3, 7, 1] with operations [{find, k=3}, {insert, 4}, {insert, 9}, {find, k=2}, {find, k=4}] returns [1, 7, 3].
Community answers
No answers contributed by the community yet.
Related courses

Course

Course
Course
