求完全二叉的节点个数
题目描述
力扣
解题思路class Solution {
public:
int countNodes(TreeNode* root)
{
if(root==nullptr)
{
return 0;
}
return 1+coun