Skip to content
Medium-Easy Apply Stacks & Queues Multiple Choice

Stack or Queue for implementing Undo/Redo in a text editor?

Apply — Tests ability to use knowledge in practical scenarios.

Answer Options

A One stack for both undo and redo
B Two stacks: undo stack and redo stack
C One queue for both
D A deque

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 34+ more Stacks & Queues questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the Stacks & Queues topic (Data Structures).

More Stacks & Queues Questions