Q19
How can you implement a queue using two stacks efficiently?
A.
By using one stack for enqueue and the other for dequeue
AnswerB.
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
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board