What values are returned during the following series of stack operations, if
executed upon 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]
Comments
Leave a comment