LC: 1490. Clone N ary Tree - spiralgo/algorithms GitHub Wiki
The Essence:
Tree is a recursively defined data structure. The clone a tree with its root given, we also need clone its children as trees.
Details:
Firstly, the root is cloned, than its children are cloned in this same recursive procedure and appended to the children of the cloned root. Then the root is returned.