← Binary Trees & BST Quiz: all 8 questions
Binary Trees & BST Quiz · Question 7 of 8
Which tree questions are usually solved with DFS returning a value from the children (postorder)? (select all that appl…
Which tree questions are usually solved with DFS returning a value from the children (postorder)? (select all that apply)
- A.Height of the tree
- B.Diameter of the tree
- C.Check if the tree is balanced
- D.Right side view
Answer & explanation
Correct answer: Height of the tree · Diameter of the tree · Check if the tree is balanced
Right side view is naturally a level-order (BFS) question — take the last node of each level.
Can you get the rest right without peeking?
Take the timed Binary Trees & BST Quiz quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →