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 left child to queue if exists
Add right child to queue if exists
Repeat for next level
End when queue empty
Return collected left view values
We start from the root and use a queue to traverse level by level. For each level, we record the first node's value as the left view. We add children to the queue to process the next level.
