1. Design a queue with a getMin() function
Anonymous
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.
Check out your Company Bowl for anonymous work chats.