Exercise--Solution
Pop once, saving the popped element in a variable called Top.
Peek into another variable called Result.
Push Top.
Return Result.
Previous slide
Next slide
Back to first slide
View graphic version