Chapter 3 Stacks and Queues - 3.5Problem 3.5: Implement a MyQueue class which implements a queue us
Chapter 3 Stacks and Queues - 3.5
Problem 3.5: Implement a MyQueue class which implements a queue using two stacks.
The word "two stacks" is a strong hint. I implemented my solution quickly.
The lesson: never stop thinking about optimization!!!
