← Questions

Documents and layers: create, rename, move and remove

0
FigmaCodingLast asked Sep 2020

Process a list of operations on documents and their layers: create a document, add a layer with a value to a document, change a layer's value, move a layer to another document, and remove a layer. Layer IDs are unique across all documents. At the end, return every document sorted by ID with its layers sorted by ID. Keep a map from layer to its document so moves and removals don't scan.

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