Problem 428 · Hard

Serialize and Deserialize N-ary Tree

Convert an N-ary tree to a string and rebuild the same tree from that string. The visual shows the tree and the serialised text side by side and rebuilds the nodes from the text.

Open the interactive visualisation