Skip to content
Related Articles

Related Articles

Data Structures | Misc | Question 2
  • Last Updated : 13 Feb, 2013

Which data structure is used in redo-undo feature?
(A) Stack
(B) Queue
(C) Tree
(D) Graph

Answer: (A)

Explanation: Stack data structure is most suitable to implement redo-undo feature. This is because the stack is implemented with LIFO(last in first out) order which is equivalent to redo-undo feature i.e. the last re-do is undo first.

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up
Recommended Articles
Page :