首页 > 技术文章 > 递归算法--二叉树高度

Coeus-P 2018-07-23 10:57 原文

int height(BitNode *t){

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

}

您可能感兴趣的

推荐阅读