Tree traversal
Posts  1 - 1  of  1
vaso
An inorder traversal sould be used to print the expression. When it encounters a terminal node simply prints it out; and when it encounters a non-terminal node, does the following:
print a left parenthesis; and then
traverse the left subtree; and then
print the root; and then
traverse the right subtree; and then
print a right parenthesis

Save
Cancel
Reply
 
x
OK