Page 1 of 1

We execute the following operations on a stack of maximum capacity 5: push(5), push(10), push(15), push(20), pop(), pop(

Posted: Mon Jun 06, 2022 5:16 pm
by answerhappygod
We execute the following operations on a stack of maximum
capacity 5: push(5), push(10), push(15), push(20), pop(),
pop().
If topOfStack = -1 initially, then the size of the stack after
the sequence of operations above isQuestion Blank 1 of 2.If
topOfStack = 1 initially, then the size of the stack after the
sequence of operations above isQuestion Blank 2 of 2