To implement a stack using queue(with only enqueue and dequeue operations), how many queues will you need?

Q & ACategory: Data StructureTo implement a stack using queue(with only enqueue and dequeue operations), how many queues will you need?
Admin Staff asked 4 years ago

To implement a stack using queue(with only enqueue and dequeue operations), how many queues will you need?
a) 1
b) 2
c) 3
d) 4

1 Answers
Admin Staff answered 4 years ago

b) 2