Question d’entretien chez Microsoft

Implement a stack with two queues

Réponse à la question d'entretien

Utilisateur anonyme

8 déc. 2018

Just have a queue for popping and another one for pushing, if the queue for popping is empty then just move everything from the pushing queue to the popping queue.