3 ms·A priority queue is the easy answer to virtually any “top k” problem so is still worth mentioning.by qDnbBcCnsZneEJg 5y agoA priority queue is the easy answer to virtually any “top k” problem so is still worth mentioning.