What is the minimum number of queues needed to implement a stack ?
2026
What is the minimum number of queues needed to implement a stack ?
- A.
1
- B.
2
- C.
3
- D.
Cannot be implemented
Attempted by 276 students.
Show answer & explanation
Correct answer: B
A stack can be implemented using two queues. One queue is used for push operations, and the other helps in maintaining stack order during pop.