摘要: 本题要求实现给定二叉搜索树的5种常用操作。 函数接口定义: BinTree Insert( BinTree BST, ElementType X ); BinTree Delete( BinTree BST, ElementType X ); Position Find( BinTree BST, 阅读全文
posted @ 2020-07-17 12:01 别团等shy哥发育 阅读(27) 评论(0) 推荐(0)
摘要: 本题要求按照先序遍历的顺序输出给定二叉树的叶结点。 函数接口定义: void PreorderPrintLeaves( BinTree BT ); 其中BinTree结构定义如下: typedef struct TNode *Position; typedef Position BinTree; s 阅读全文
posted @ 2020-07-17 11:57 别团等shy哥发育 阅读(21) 评论(0) 推荐(0)