Domanda di colloquio di Purplle.com

How to implement queue using stack

Risposta di colloquio

Anonimo

14 lug 2021

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