It is easy to see that this is a recursion. Therefore, understanding well is significant for understanding Binary Tree.
There are three orders for traversing a Binary Tree.
1. Inorder: left child, root, right child
2. Preorder: root, left child, right child
3. Postorder: left child, right child, node

No comments:
Post a Comment