Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // BinarySearchTree *bstree_successor(const BinarySearchTree *x) {
- // assert(!bstree_empty(x));
- // printf("succ\n");
- // ptrBinarySearchTree cur = (ptrBinarySearchTree)x;
- // cur = cur->right;
- // while (!bstree_empty(cur) && !bstree_empty(cur->left)){
- // cur = cur->left;
- // }
- // return (BinarySearchTree *)cur;
- // }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement