递归算法--二叉树高度

int height(BitNode *t){

if(t==null)
	return 0;
else
	return 1+Max{height(t->lchild),height(t->rchild)};

}

您可能感兴趣的
posted @ 2018-07-23 10:57  Loading~  阅读(2493)  评论(0编辑  收藏  举报