If the elements “A”, “B”, “C” and “D” are placed in a stack and are deleted one at a time, what is the order of removal?
(a) ABCD
(b) DCBA
(c) DCAB
(d) ABDC
This intriguing question comes from Stack Operations in chapter Abstract Data Types of Data Structures & Algorithms I
This question was addressed to me in homework.