AlgoMaster Logo

Implement Queue using Stacks

operations=[push(1), push(2), push(3), pop(), peek(), push(4), pop()]
0 / 31
Initialize Queuetransferinputoutput
algomaster.io
Step:Start: Implement Queue using two Stacks (input and output)