2022.0806算法第12题二叉树的最大深度
采用递归算法计算,递归左子树和右子树。
if(root==NULL)
    return 0;
return max(maxDepth(root->left),maxDepth(root->right))+1;