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 first and last node indices
Calculate width = last_index - first_index + 1
Update max width if current width is larger
Add children to queue with updated indices
Repeat until all levels processed
Return max width found
We start from the root and use a queue to traverse level by level, tracking node positions to find the maximum width.