+1 vote
in Data Structures & Algorithms I by (110k points)
Minimum number of queues to implement stack is ___________

(a) 3

(b) 4

(c) 1

(d) 2

My query is from Stack using Linked List in chapter Abstract Data Types of Data Structures & Algorithms I

The question was asked in homework.

1 Answer

+1 vote
by (412k points)
selected by
Best answer
Correct choice is (c) 1

Easy explanation - Use one queue and one counter to count the number of elements in the queue.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.