If a stack supports push and pop operations, and we push 1, 2, 3, 4, 5 in…

TPSC Computer/IT Posts 2026

If a stack supports push and pop operations, and we push 1, 2, 3, 4, 5 in order and intermix pops, which sequence is NOT a valid pop sequence ?

  1. A.

    5, 4, 3, 2, 1

  2. B.

    3, 4, 5, 2, 1

  3. C.

    4, 5, 3, 2, 1

  4. D.

    3, 1, 4, 5, 2

Attempted by 76 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…