🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Tree Traversals: all 13 questions

Quiz: Tree Traversals · Question 5 of 13

Computing the height of every node from its children's heights is which kind of traversal?

Computing the height of every node from its children's heights is which kind of traversal?

  1. A.Preorder
  2. B.Inorder
  3. C.Postorder
  4. D.Level order
Answer & explanation

Correct answer: Postorder

A node's answer needs both children's answers first, so the node is processed last.

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 →