AlgoMaster Logo

Implement Stack using Queues

operations=[push(1), push(2), push(3), pop(), top(), push(4), pop()]
0 / 38
Initialize empty queuequeue(empty)
algomaster.io
Step:Start: Implement Stack using a single Queue