← Quiz: Tree Traversals: all 13 questions
Quiz: Tree Traversals · Question 10 of 13
Which data structure does level-order traversal use?
Which data structure does level-order traversal use?
- A.A stack
- B.A hash map
- C.A queue
- D.A heap
Answer & explanation
Correct answer: A queue
Nodes are taken out in the order they were added, so all nodes of one level come before the next level.
Can you get the rest right without peeking?
Take the timed Quiz: Tree Traversals quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →