简述下述算法中各语句的主要作用,并写出算法的功能
struct BTreeNode{
elemtype data;
struct BTreeNode *lchild;
struct BTreeNode *rchild;
};
int hight(BTreeNode T)
{ int h1,h2,h;
if (T= =NULL)
return(0);
else{
h1=hight(T->lchild);
h2=hight(T->rchild);
if(h1>=h2)
h=h1+1;
else
h=h2+1;
return(h)
}
}
求二叉链表存储的二叉树的深度(高度)。