二叉排序樹(BST)的查找算法(非遞歸算法)

#include <iostream> using namespace std; // BST的結點 typedef struct node { int key; struct node *lChild, *rChild; }Node, *BST; // 在給定的BST插入element, 使之稱爲新的BST bool BSTInsert(Node * &p, int element) {
相關文章
相關標籤/搜索