递归算法--二叉树高度

int height(BitNode *t){

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

}


您可能感兴趣的

猜你喜欢

转载自www.cnblogs.com/Coeus-P/p/9353528.html