What traversal pattern groups nodes by level?
Practice this question from Binary Tree Level Order Traversal - BFS queue Pattern Practice Quiz, with options and an explanation.
Question
What traversal pattern groups nodes by level?
Option A — Correct answer
BFS with a queue
Option B
Inorder DFS only
Option C
Binary search
Option D
Hash map counting
Explanation
Breadth-first search with a queue groups nodes level by level.