postorder(node)
{
if (node.visited == false)
postorder(node->left)
postorder(node->right)
node.visited = true
}
preorder(node)
{
if (node.visited == false)
node.visited = true
preorder(node->left)
preorder(node->right)
}
inorder(node)
{
if (node.visited == false)
inorder(node->left)
node.visited = true
inorder(node->right)
}
정말 좋은 글 감사합니다!