binsearchtree1.h

来自「二叉搜索树的基本操作」· C头文件 代码 · 共 31 行

H
31
字号
typedef int ElemType;

struct BSTNode {
	ElemType data;
	BSTNode * left;
	BSTNode * right;
};

void INitBSTree(BSTNode * & BST);

bool BSTreeEmpty(BSTNode * BST);

bool Find(BSTNode * BST, ElemType& item);

bool Update(BSTNode * BST,const ElemType& item);

void Insert(BSTNode * & BST,const ElemType& item);

bool Delete(BSTNode * & BST,const ElemType& item);

void CreateBSTree(BSTNode * &BST,ElemType a[],int n);

void Inorder(BSTNode * BST);

int BSTreeDepth(BSTNode * BST);

int BSTreeCount(BSTNode * BST);

void PrintBSTree(BSTNode * BT);

void ClearBSTree(BSTNode * & BT);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?