Problem 987 · Hard

Vertical Order Traversal of a Binary Tree

Give each node a column (left -1, right +1) and a row, then list the values column by column, top to bottom.

Open the interactive visualisation