← Questions
Documents and layers: create, rename, move and remove
0
I was asked this
No reports yet. Sign in to say where you were asked it.
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.
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
