Examveda

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

D. By using one queue to manage the size of the stack

Answer: Option C


This Question Belongs to Data Structure >> Stacks In Data Structures

Join The Discussion

Related Questions on Stacks in Data Structures