1.

Minimum number of queues to implement stack is ___________(a) 3(b) 4(c) 1(d) 2My query is from Stack using Linked List in chapter Abstract Data Types of Data Structures & Algorithms IThe question was asked in homework.

Answer»

Correct choice is (c) 1

Easy EXPLANATION - Use ONE queue and one counter to COUNT the number of ELEMENTS in the queue.



Discussion

No Comment Found

Related InterviewSolutions