CAPE Computer Science Unit 2 · 2006 · Paper 1 · Question 15
A stack S contains positive integers.
Using only stack ADT operations, write an algorithm to calculate the sum of every other element in S.
More practice: the rest of this paper · more Abstract Data Types (ADTs) questions · all CAPE Computer Science Unit 2 past papers