摘要:
本题要求实现二分查找算法。 函数接口定义: Position BinarySearch( List L, ElementType X ); 其中List结构定义如下: typedef int Position; typedef struct LNode *List; struct LNode { E 阅读全文
posted @ 2022-07-19 11:21
Yohoc
阅读(40)
评论(0)
推荐(0)
摘要:
本题要求给定二叉树的4种遍历。 函数接口定义: void InorderTraversal( BinTree BT ); void PreorderTraversal( BinTree BT ); void PostorderTraversal( BinTree BT ); void Levelor 阅读全文
posted @ 2022-07-19 11:01
Yohoc
阅读(51)
评论(0)
推荐(0)
摘要:
本题要求给定二叉树的高度。 函数接口定义: int GetHeight( BinTree BT ); 其中BinTree结构定义如下: typedef struct TNode *Position; typedef Position BinTree; struct TNode{ ElementTyp 阅读全文
posted @ 2022-07-19 10:00
Yohoc
阅读(75)
评论(0)
推荐(0)

浙公网安备 33010602011771号