Concept Flow - Bottom View of Binary Tree
Start at root node
Assign horizontal distance = 0
Use queue for level order traversal
For each node dequeued:
Record node's value at its horizontal distance
If left child exists: horizontal distance - 1
If right child exists: horizontal distance + 1
Continue until queue empty
Collect last recorded nodes at each horizontal distance
Output bottom view from leftmost to rightmost horizontal distance
Traverse the tree level by level, track horizontal distances, update bottom view nodes, then output nodes visible from bottom.
