int GetHeight( BinTree BT )
{
if(BT == NULL)
return 0;
int depth = GetHeight( BT->Left );
if(depth < GetHeight( BT->Right ))
depth = GetHeight( BT->Right );
return depth + 1;
}
理解全文并熟读并背诵【狗头】
int GetHeight( BinTree BT )
{
if(BT == NULL)
return 0;
int depth = GetHeight( BT->Left );
if(depth < GetHeight( BT->Right ))
depth = GetHeight( BT->Right );
return depth + 1;
}
理解全文并熟读并背诵【狗头】