Chapter 18: Problem 17
Give pseudocode that implements a queue using two stacks. The queue operations enqueue, dequeue, and empty must be implemented in terms of the push , pop and empty stack operations.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.