Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

ISRO | ISRO CS 2015 | Question 15

  • Last Updated : 03 Apr, 2018

The queue data structure is to be realized by using stack. The number of stacks needed would be
(A) It cannot be implemented
(B) 2 stacks
(C) 4 stacks
(D) 1 stack

Answer: (B)

Explanation: A queue can be implemented using 2 stacks. Refer: Implement Queue using Stacks

Option (B) is correct.

Quiz of this Question
Please comment below if you find anything wrong in the above post

My Personal Notes arrow_drop_up
Recommended Articles
Page :