0
aank1traj
Height of tree
0 Comments
int height(Node *root) { if (root == NULL) { return 0; } int lheight = height(root->left); int rheight = height(root->right); return 1 + max(lheight, rheight); }