Multiple choice
Starting with an empty stack, these operations run in order: push(A), push(B), push(C), pop(), push(D), pop(). Predict what peek() returns now.
A
A
B
C
C
D
D
B
Pick an answer to check
Exam season is here.Good luck with your papers. Premium for a month: every worked solution, every Test yourself card and 5 mock exams a week, S$15 paid once.
Get Premium for a monthUploaded by transitevolution · 14 April 2024
Pick an answer to check
Pick an answer to check
16 more cards are locked. Premium unlocks them.
16 more cards