Which of the following permutation can be obtained in the same order using a…

ISRO Scientist/Engineer SC · December 2017 · Computer Science

Which of the following permutation can be obtained in the same order using a stack assuming that input is the sequence 5, 6, 7, 8, 9 in that order?

  1. A.

    7, 8, 9, 5, 6

  2. B.

    5, 9, 6, 7, 8

  3. C.

    7, 8, 9, 6, 5

  4. D.

    9, 8, 7, 5, 6

Attempted by 1093 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…