Examveda

How can you implement a queue using two stacks efficiently?

A. By using one stack for enqueue and the other for dequeue

B. By using one stack to reverse elements and the other to process them

C. By using two stacks to manage elements and orders

D. By using one stack to store elements and the other to manage order

Answer: Option A


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

Join The Discussion

Related Questions on Queues in Data Structures