Given an empty stack. After doing PUSH(25), PUSH (43), PUSH(85), POP(), PUSH(100), PUSH (67), POP(), POP(), POP(), which element will be on the top of the stack? Select one: a. 25 b. 67 c. 100 d. 85 e. 43 code example
Example: stack operations, if executed on an initially empty stack? push(5), push(3), pop(), push(2), push(8), pop(), pop(), push(9), push(1), pop(), push(7), push(6), pop(), pop(), push(4), pop(), pop().
5
5 3
5
5 2
5 2 8
5 2
5
5 9
5 9 1
5 9
5 9 7
5 9 7 6
5 9 7
5 9
5 9 4
5 9
5