Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 1 - No. 19)
What would be a use case for a 'stack' data structure?
Implementing an 'undo' feature in a text editor.
Managing function calls.
Storing elements in order of arrival.
Implementing a print queue.
Explanation
Stacks are helpful for managing function calls, and the undo function.
Comments (0)
