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 

1
2, 2, 1, 1, 2
2
2, 2, 1, 2, 2
3
2, 1, 2, 2, 1
4
2, 1, 2, 2, 2
5
None of above

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation