Question d’entretien chez Purplle.com

How to implement queue using stack

Réponse à la question d'entretien

Utilisateur anonyme

14 juil. 2021

Takes 2 stacks , to enqueue directly push into stack and to dequeue empty complete stack and push into another stack then dequeue.