PTA數據結構與算法題目集(中文) 6-8 求二叉樹高度 (20 分)

本題要求給定二叉樹的高度。函數 函數接口定義: int GetHeight( BinTree BT ); 其中BinTree結構定義以下:測試 typedef struct TNode *Position; typedef Position BinTree; struct TNode{ ElementType Data; BinTree Left; BinTree Righ
相關文章
相關標籤/搜索