Domanda di colloquio di Bloomberg

1. Design a queue with a getMin() function

Risposta di colloquio

Anonimo

10 lug 2020

Could you wrap an STL queue and priority queue into a class ? Then whenever queue.pop is called, remove the corresponding element from the priority queue.