Problem 3054 · Easy

Binary Tree Nodes

SQL teaching model. A node with no parent is the Root, a node that is some other node’s parent is Inner, and every remaining node is a Leaf.

Open the interactive visualisation