10 marksAbstract Data Types (ADTs)
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.
The mark scheme is shown once you've answered.
Practise this question