Layer Property Editor with Batch Undo/Redo

Implement a canvas layer property editor that supports batch-level undo and redo.

Commands (the first line is the number of commands q, 1 <= q <= 10^5, followed by one command per line):

  • `SET l...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: