
数据结构
文章平均质量分 59
zhuxuan1028
这个作者很懒,什么都没留下…
展开
-
PTA 数据结构与算法题目集(中文)6-9 二叉树的遍历
6-9 二叉树的遍历(25 分)本题要求给定二叉树的4种遍历。函数接口定义:void InorderTraversal( BinTree BT ); void PreorderTraversal( BinTree BT ); void PostorderTraversal( BinTree BT ); void LevelorderTraversal( BinTree BT ); 其中BinTre...原创 2018-07-01 23:56:26 · 630 阅读 · 1 评论 -
PTA 数据结构与算法题目集(中文)6-8 求二叉树高度
6-8 求二叉树高度(20 分)本题要求给定二叉树的高度。函数接口定义:int GetHeight( BinTree BT ); 其中BinTree结构定义如下:typedef struct TNode *Position; typedef Position BinTree; struct TNode{ ElementType Data; BinTree Left; Bin...原创 2018-07-01 23:59:07 · 678 阅读 · 0 评论