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:
Update map with node at HD
Enqueue right child with HD+1
Repeat until queue empty
Extract bottom view from map sorted by HD
Print bottom view nodes left to right
Traverse the tree level by level, track horizontal distances, update bottom-most node at each horizontal distance, then print nodes from leftmost to rightmost horizontal distance.