Maintain a dynamic list supporting insertions and kth-largest queries where k itself changes per query.
Unlock detailed company stats for this questionUpgrade
Framed as a chef maintaining a dynamic list of values like test scores or rankings. 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]. The standard problem has fixed k, but the interviewer made k dynamic.
Community answers
No answers contributed by the community yet.
Related courses

Course

Course
Course
