int doo(node*root){if(root !=0 ) {if(root->left==0 && root->right==0) return root->data; int L=doo(root->left);int R=doo(root->right);if(L>R) return R; else return L;}}this code used for
if(root !=0 ) {
if(root->left==0 && root->right==0) return root->data;
int L=doo(root->left);
int R=doo(root->right);
if(L>R) return R; else return L;}
}
this code used for
find the sum of leaves items in a binary tree
find the minimum item in a binary tree
find the minimum item in the leaves of a binary tree
the maximum item in the leaves of a binary tree
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here