Untitled
int countLeafNode(struct node *root){ if(root == NULL) return 0; if(root->left == NULL && root->right == NULL) return 1; return countLeafNode(root->left) + countLeafNode(root->right); }
int countLeafNode(struct node *root){ if(root == NULL) return 0; if(root->left == NULL && root->right == NULL) return 1; return countLeafNode(root->left) + countLeafNode(root->right); }