Implement Queue Using Stacks
Try to solve the Implement Queue Using Stacks problem.
We'll cover the following...
Statement
Design a custom queue, MyQueue, using only two stacks. Implement the Push(), Pop(), Peek(), and Empty() methods:
- Void Push(int x):