← Questions
Command executor with undo
0
I was asked this
No reports yet. Sign in to say where you were asked it.
Implement a class that executes commands and can undo them: execute(command) applies it and records it, and undo() reverts the most recent command that has not been undone. Decide how a command knows how to reverse itself, then discuss redo, undoing several steps, and the time and memory each operation costs.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Sign in to submit your code; every attempt is kept here.
Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding
