SHARE
TWEET

Untitled

a guest Mar 26th, 2020 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. NodeT* searchKey(NodeT *root, int key) {
  2.     if(root == NULL || root->key == key)
  3.         return root;
  4.     if(root->key < key)
  5.         return searchKey(root->right, key);
  6.     return searchKey(root->left, key);
  7. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top