Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NodeT* searchKey(NodeT *root, int key) {
- if(root == NULL || root->key == key)
- return root;
- if(root->key < key)
- return searchKey(root->right, key);
- return searchKey(root->left, key);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement