Concept Flow - Left Side View of Binary Tree
Start at root node
Initialize queue with root
While queue not empty
Count nodes at current level
For each node at this level
If first node at level
Add node value to left view
Add children to queue
Repeat for next level
End when queue empty
Return left side view list
We start from the root and use a queue to visit nodes level by level. For each level, we record the first node's value as part of the left side view, then add all children to the queue to process the next level.
