The following operations are performed on empty stack - push (5), push (2), pop, push (7), push (2), pop, pop, push (9) pop, push (4), pop , the sequence of values that were popped out are 

1
2 7 9 4 2
2
2 2 7 9 4
3
2 2 4 9 7
4
2 7 2 9 4

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation