Descriptive
January 7, 2025
GATE 2011
January 9, 2025
Descriptive
January 7, 2025
GATE 2011
January 9, 2025

ISRO CS 2015

Question 11
If the sequence of operations – push (1), push (2), pop, push (1), push (2), pop, pop, pop, push (2), pop are performed on a stack, the sequence of popped out values
A
2,2,1,1,2
B
2,2,1,2,2
C
2,1,2,2,1
D
2,1,2,2,2
Question 11 Explanation: 

Final Pop sequence: 22112
Correct Answer: A
Question 11 Explanation: 

Final Pop sequence: 22112

Leave a Reply

Your email address will not be published. Required fields are marked *