Beispiel #1
0
void postorder_walk(struct t_node *root, print pr) {
    if(root) {
        postorder_walk(root->left, pr);
        postorder_walk(root->right, pr);
        pr(root->data);
    }
}
Beispiel #2
0
void postorder_walk(struct nod_arbore *radacina) {
    if (radacina != NULL) {
        postorder_walk(radacina->left);
        postorder_walk(radacina->right);
        printf("%d ", radacina->key);

    }
}
Beispiel #3
0
void postorder(struct bs_tree *tree, print pr) {
    postorder_walk(tree->root, pr);
    printf("\n");
}