| 251 | } |
| 252 | |
| 253 | bool findanode(binarytree<int>*root,int x) |
| 254 | { |
| 255 | if(root==NULL) |
| 256 | return false; |
| 257 | |
| 258 | if(root->data==x) |
| 259 | return true; |
| 260 | |
| 261 | return findanode(root->left,x) || findanode(root->right,x); |
| 262 | } |
| 263 | |
| 264 | pair<bool,int> balancedhelper(binarytree<int>*root) |
| 265 | { |
nothing calls this directly
no outgoing calls
no test coverage detected