[순회 순서]

1. left subtree

2. right subtree

3. root node


[소스코드]

void postorder(Node* root) {
	if(root == NULL) {
		return;
	}

	postorder(root->left_child);
	postorder(root->right_child);
	printf("%d ", root->data);
}

[결과]


+ Recent posts