Ask your own question, for FREE!
Computer Science 6 Online
OpenStudy (anonymous):

Show the result of the recursive function in the algorithm below, using the given tree: Algorithm treeTraversal (tree) 1 if tree is null 1 print “Null” 2 else 1 treeTraversal (right subtree) 2 print “right is done" 3 treeTraversal (left subtree) 4 print (tree data) 3 end if end treeTraversal

OpenStudy (anonymous):

OpenStudy (rsmith6559):

Since treeData is never assigned to, if printing it didn't cause an error, it would print nothing. I don't see nodes E and H ever being visited.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Arriyanalol: i need help
15 hours ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
18 hours ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
Arizona: does anyone know the percentage rate of 30,000 and 40,000
1 week ago 0 Replies 0 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!