Advertisement
Guest User

Untitled

a guest
Mar 26th, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement