Friday, October 10, 2014

Depict what is left on stack s after the following series of push and pop operations (starting with

Depict what is left on stack s after the following series of push and pop operations (starting with the first column of operations and continuing with the second). Assume that the stack is initially empty.

push(s,10)

push(s,50)

push(s,20)

push(s,60)

push(s,40)

push(s,80)

pop(s)

pop(s)

pop(s)

pop(s)

No comments:

Post a Comment