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 ?
- A.
5, 4, 3, 2, 1
- B.
3, 4, 5, 2, 1
- C.
4, 5, 3, 2, 1
- D.
3, 1, 4, 5, 2
Attempted by 76 students.
Sign up free to check your answer
Sign up freeLoading lesson…

