Try to solve the Implement Queue Using Stacks problem.
Statement
Design a custom queue, MyQueue, using only two stacks. Implement the Push(), Pop(), Peek() ...
Try to solve the Implement Queue Using Stacks problem.
Design a custom queue, MyQueue, using only two stacks. Implement the Push(), Pop(), Peek() ...