>_
SWE Maxx
Questions
Quizzes
Daily challenge
System design
My attempts
Sign in
☀
☾
Light mode
Dark mode
Loading question…
Sign in
Match the descriptions to these traversals terms: Breadth-first traversal, Depth-first traversal, Preorder traversal, Inorder traversal. | SWE Maxx
← Question bank
Algorithms · Matching
Difficulty: Medium
Match the descriptions to these traversals terms: Breadth-first traversal, Depth-first traversal, Preorder traversal, Inorder traversal.
Traversals
Concept relationships
Choose a match for every item. Use each answer once.
A breadth-first traversal uses a frontier commonly managed with a queue.
Choose a match
Depth-first traversal
Preorder traversal
Inorder traversal
Breadth-first traversal
Preorder uses node-left-right order and encounters each parent before its descendants.
Choose a match
Depth-first traversal
Preorder traversal
Inorder traversal
Breadth-first traversal
For a properly ordered binary search tree, inorder traversal yields sorted keys.
Choose a match
Depth-first traversal
Preorder traversal
Inorder traversal
Breadth-first traversal
Depth-first traversal tracks pending branches using recursion or an explicit stack.
Choose a match
Depth-first traversal
Preorder traversal
Inorder traversal
Breadth-first traversal
Check answer
More in Algorithms →