Bloomberg interview question

1. Design a queue with a getMin() function

Interview Answer

Anonymous

10 Jul 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.