The queue data structure is to be realized by using stack. The number of…

ISRO Scientist/Engineer SC · 2015 · Computer Science

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

Attempted by 2045 students.

Show answer

Correct answer: B

The worked solution is available to enrolled students.

Video solution available to enrolled students.

Explore the full course: Iocl Engineers Officers Grade A Paper 2

Loading lesson…