Concept Flow - Vertical Order Traversal of Binary Tree
Start at root node
Assign horizontal distance = 0
Use queue for BFS traversal
Dequeue node
Record node value at its horizontal distance
Enqueue left child with hd-1
Enqueue right child with hd+1
Repeat until queue empty
Sort keys (horizontal distances)
Output nodes grouped by horizontal distance
Traverse the tree level by level, track horizontal distances, group nodes by these distances, then output groups from left to right.
