cpp
int Depth(BiTree Tree)
{
if (!Tree)
return 0;
return Depth(Tree->lchild) > Depth(Tree->rchild) ? Depth(Tree->lchild) + 1 : Depth(Tree->rchild) + 1;
}
int Depth(BiTree Tree)
{
if (!Tree)
return 0;
return Depth(Tree->lchild) > Depth(Tree->rchild) ? Depth(Tree->lchild) + 1 : Depth(Tree->rchild) + 1;
}