Vidyalelo
Data Structure · Q21

Stacks in Data Structures

Programming · Data Structure · question 21

Q21

How can you implement a stack using two queues?

A.
By using one queue to store elements and the other to reverse the order
B.
By alternating between queues for push and pop
C.
By using one queue for stack operations and another for temporary storage
Answer
D.
By using one queue to manage the size of the stack

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board