Teaching Haryana (HPSC) Assistant Professor Mock Test 2025 Programming and Data Structure Stack Insertion
Identify the wrong output stack permutation for the Input sequence in 1, 2, 3, 4, 5 and pop can occur at any time in stack.
1
5, 4, 3, 2, 1
2
2, 3, 5, 4, 1
3
4, 3, 5, 2, 1
4
3, 4, 1, 5, 2
5
Question Not Attempted