0 votes 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 DS ugcnetcse-dec2012-paper2 data-structures stack + – go_editor asked Jul 11, 2016 • recategorized Oct 29, 2017 by Devshree Dubey go_editor 4.9k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 3 votes 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 See all 0 reply Please log in or register to add a comment.
2 votes 2 votes 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 See all 0 reply Please log in or register to add a comment.