Consider you have a stack whose elements in it are as follows. 5 4 3 2 << top Where the top element is 2. You need to ge
Posted: Wed Jul 13, 2022 7:41 pm
a) Push(pop()), push(6), push(pop())
b) Push(pop()), push(6)
c) Push(pop()), push(pop()), push(6)
d) Push(6)
b) Push(pop()), push(6)
c) Push(pop()), push(pop()), push(6)
d) Push(6)