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
We execute the following operations on a stack of maximum capacity 5: push(5), push(10), push(15), push(20), pop(), pop(
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am