Problem 2196 · Medium

Create Binary Tree From Descriptions

Build a binary tree from parent, child and side triples. The visual links each parent to its child on the indicated side and marks the root with no incoming link.

Open the interactive visualisation