inorder, preorder postorder calculator code example
Example 1: inorder preorder postorder
preorder: parent => left => right
inorder: left => parent => right
postorder: left => right => parent
Example 2: preorder traversal visualization
display(root->data)
preorder(root->left)
preorder(root->right)