1
![Programming Puzzles & Code Golf](//cdn.sstatic.net/codegolf/img/apple-touch-icon.png)
You're given a tree, which in computer science tradition, has the root at the top and leaves at the bottom. The leaf nodes are labelled with numbers. Your goal is to take the special leaf marked -1 and move it up to be the new root.
[3, [[16], -1], [[4]]] --> [[[[[4]], 3], [16]]]
You can im...