Loading

摘要: int Depth(BiTree T)/* 深度 */ { if(T==NULL) return(0); return 1+(Depth(T->lchild)>Depth(T->rchild)? Depth(T->lchild):Depth(T->rchild)); //选择左右孩子深度高的然后加上根节点这一层就是深度了 } void Long(BiTree T)... 阅读全文
posted @ 2018-11-16 19:51 拾月凄辰 阅读(5221) 评论(0) 推荐(1) 编辑