how many queues are needed to implement a stack
Answers
Answered by
3
Answer:
Either the push or the pop has to be a costly operation, and the costlier operation requires two queues.
Explanation:
hope it helps!
Similar questions