Pregunta de entrevista de Bloomberg

1. Design a queue with a getMin() function

Respuesta de la entrevista

Anónimo

10 de jul de 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.