1.

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. Preorder traversal
B. Inorder traversal
C. Postorder traversal
D. Level order traversal
Answer» D. Level order traversal


Discussion

No Comment Found