Question DSA-STK-0053
MediumWhich is the best data structure to implement 'undo' in a text editor?
- A.
A queue
- B.
A stack
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Stacks question
Which is the best data structure to implement 'undo' in a text editor?
A queue
A stack
Sign up free to see the answer and a step-by-step explanation.
A hash map
A heap