📅  最后修改于: 2022-03-11 14:44:47.163000             🧑  作者: Mango
代码示例1
int CountNodes(node* root)
{
if (root == NULL) {
return 0;
}
return 1 + CountNodes(root->left) + CountNodes(root->right);
}