Data Structures | Queue | Question 3
How many stacks are needed to implement a queue. Consider the situation where no other data structure like arrays, linked list is available to you.
Explanation: A queue can be implemented using two stacks. See following for implementation.