Mental Model
We group tree nodes by their vertical columns from left to right, collecting nodes that share the same horizontal distance from the root.
Analogy: Imagine standing in front of a tall building and looking straight at it. You see windows stacked vertically in columns. Vertical order traversal is like listing all windows column by column from left to right.
1
/ \
2 3
/ \ \
4 5 6
Columns:
-2 -1 0 1 2
4 -> 2 -> 1,5 -> 3 -> 6