0 0 votes Given an empty stack, after performing push(1), push(2), pop, push(3), push(4), pop, pop, push(5), pop, what is the value of the top of the stack? 4 3 2 1 Data Structures ugcnetcse-dec2012-paper2 data-structures stack + – go_editor 5.6k views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
Best answer 3 3 votes Operation push(1) push(2) pop push(3) push(4) pop pop push(5) pop 4 2 3 3 3 5 1 1 1 1 1 1 1 1 1 Hence,Option(D)1 is the correct choice. LeenSharma answered Jul 11, 2016 • selected Jul 11, 2016 by ManojK LeenSharma comment Share Follow 0 reply Please log in or register to add a comment.
1 1 vote Answer: 1 Push 1 Push 2 1 Pop 2 1 Push 3 Push 4 1 Pop 4 Pop 3 1 Push 5 1 Pop 5 1 <=== Answer shekhar chauhan answered Jul 11, 2016 shekhar chauhan comment Share Follow 0 reply Please log in or register to add a comment.