8 8 votes 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 2,2,1,1,2 2,2,1,2,2 2,1,2,2,1 2,1,2,2,2 Data Structures isro2015 data-structures stack easy + – go_editor 5.3k views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
10 10 votes Ans A) Simple push and pop in stack has done here After pushing some element in stack when we do pop , we get element in LIFO order srestha answered Jun 17, 2016 srestha comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes Here is the solution : Kshitij Sharma answered Dec 18, 2024 Kshitij Sharma comment Share Follow 0 reply Please log in or register to add a comment.