Back to DashboardUpgrade
Pro pattern
Upgrade to Pro to access this pattern and all 22 patterns.
PATTERN
Trees (BFS)
Traverse binary trees level by level using a queue. Master the queue-plus-level-size pattern to solve problems that require processing nodes one level at a time, including level-order traversal, per-level aggregation, and BFS-based serialization.
Learn Trees (BFS)Explanation, templates & reference
Average of Levels in Binary Tree
easy
Binary Tree Level Order Traversal
medium
Binary Tree Right Side View (BFS)
medium
Binary Tree Zigzag Level Order Traversal
medium
Serialize and Deserialize Binary Tree (BFS)
hard