Hide text Hide pseudo-code | |
Traverse the following binary tree in preorder. | void traversePreOrder(link t) { if (t != NULL) { visit(t); traversePreOrder(t.getLeft()); traversePreOrder(t.getRight()); } } |
TRAKLA2 | Index | Research | Support |
Hide text Hide pseudo-code | |
Traverse the following binary tree in preorder. | void traversePreOrder(link t) { if (t != NULL) { visit(t); traversePreOrder(t.getLeft()); traversePreOrder(t.getRight()); } } |