Concept Flow - Maximum Width of Binary Tree
Start at root node
Initialize queue with root and index 0
While queue not empty
For each level: get size
Record first and last node indices
Calculate width = last - first + 1
Update max width if current width is larger
Add children to queue with updated indices
Repeat for next level
Return max width
We start from the root, use a queue to traverse level by level, track node positions to find width, and update max width until all levels are processed.
