Which of the following stack permutations can’t be obtained for the input…

Which of the following stack permutations can’t be obtained for the input sequence 1,2,3,4,5,6,7,8

  1. A.

    3,4,5,2,1,6,7,8

  2. B.

    4,3,5,6,2,1,8,7

  3. C.

    1,2,3,4,5,6,7,8

  4. D.

    2,5,6,3,4,1,7,8

Attempted by 565 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…