Kth Smallest Under Load
A leaderboard supports three operations, interleaved online, of them in total, with scores that are integers in :
insert(v)erase(v)kth(k)returning the -th smallest score currently present
Which structure serves all three, and what exactly is missing from the near misses?
Sign in to answer questions and track your progress
Sign In