Last Minute Notes
Github
Docs
Learn
Search
⌘
K
@sayanstwt
Lessons
Learn
/
Data Structures & Algorithms
/
Trees & Heaps
Tree BFS
7 min
Beginner
8 steps
Visit a tree level by level with a queue.
Nodes
5
Levels
3
Output rows
3
3
9
20
15
7
WANT
empty
return the values row by row
current
visited
done
In this lesson
Step 1 of 8
1
The problem
2
Levels
3
Full run
4
Right view
5
Min depth
6
Memory
7
Multi-source
8
Recap