Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- someReturnType findItemBinTree(int item, node * root) {
- if (root != NULL) {
- if (root->data == item)
- return whatever;
- else {
- findItemBinTree(item, root->lf);
- findItemBinTree(item, root->rt);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement