PTA数据结构与算法题目集(中文) 6-8 求二叉树高度 (20 分)

本题要求给定二叉树的高度。函数 函数接口定义: int GetHeight( BinTree BT ); 其中BinTree结构定义以下:测试 typedef struct TNode *Position; typedef Position BinTree; struct TNode{ ElementType Data; BinTree Left; BinTree Righ
相关文章
相关标签/搜索