SoloEasy15m

Implement Undo/Redo for Text Editor

Users expect Ctrl+Z / Ctrl+Y in the text editor. Implement undo/redo using two stacks: one for undo history, one for redo history. Each action (type character, delete character) pushes state onto the undo stack.

Skills you'll prove

javascriptdata-structuresstacksstate-management

Browse freely — sign in when you're ready to open a ticket and prove your skills.