Problem 655 · Medium

Print Binary Tree

Lay the tree out in a grid whose columns split in half at each level, centring every node.

Open the interactive visualisation