?
What does the following piece of code do?
What does the following piece of code do?
public void func(Tree root)
{
func(root.left());
func(root.right());
System.out.println(root.data());
}
public void func(Tree root)
{
func(root.left());
func(root.right());
System.out.println(root.data());
}
Join the Discussion
Login to post a comment or share your explanation.
Login