Concept Flow - Left Side View of Binary Tree
Start at root node
Initialize queue with root
While queue not empty
Get number of 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 (left then right)
Repeat for next level
End when queue empty
Return collected left side view
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 its children to the queue. Repeat until all levels are processed.
