Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. // BinarySearchTree *bstree_successor(const BinarySearchTree *x) {
  2. // assert(!bstree_empty(x));
  3. // printf("succ\n");
  4. // ptrBinarySearchTree cur = (ptrBinarySearchTree)x;
  5. // cur = cur->right;
  6. // while (!bstree_empty(cur) && !bstree_empty(cur->left)){
  7. // cur = cur->left;
  8. // }
  9. // return (BinarySearchTree *)cur;
  10. // }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement