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 in level
Dequeue node
If first node in level, add to left view
Enqueue left child if exists
Enqueue right child if exists
Repeat for all nodes in level
Repeat for next level
End when queue empty
Return collected left view nodes
We start from the root and explore the tree level by level. At each level, we record the first node we see (the leftmost). We use a queue to keep track of nodes to visit next.