ISRO 2015 · Arrays & Matrix Representation

MCQ · 1 mark · Problem PROG-DSTR-0132

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

Solve it on GATE DA practice →More Basic Data Structures problems

Show the worked solutionOfficial GATE Answer Key: Option B.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/51086/isro2015-15

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com