← Quiz: Tree Traversals: all 13 questions
Quiz: Tree Traversals · Question 7 of 13
"Return the last node of every level" (right side view) is easiest with:
"Return the last node of every level" (right side view) is easiest with:
- A.inorder
- B.postorder
- C.level order (BFS)
- D.sorting the values
Answer & explanation
Correct answer: level order (BFS)
Level order processes one level at a time, so its last node is the one seen from the right.
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 →