Question: (2) What does the following piece of code do? public void func (Tree root) func (root. left()); func(root.right()); System.out.println (root.data()); a CH 1 .5
(2) What does the following piece of code do? public void func (Tree root) func (root. left()); func(root.right()); System.out.println (root.data()); a CH 1 .5 A. preorder Traversal B. Inorder Traversal C. Postorder Traversal D. level order Traversal O e 18
Step by Step Solution
3.46 Rating (159 Votes )
There are 3 Steps involved in it
Option b In a postorder traversal first we visist the left child th... View full answer
Get step-by-step solutions from verified subject matter experts
