Google News
logo
Data Structures - Quiz(MCQ)
The minimum number of stacks required to implement a stack is __________
A)
1
B)
2
C)
3
D)
5

Correct Answer :   2


Explanation : In Queue, one stack is required for the enqueue operation, and another stack will be used for the dequeue operation. The first stack is considered as the input stack whereas the second stack is considered as the output stack.

Advertisement