说明:AVL树模板,支持操作如下
template
struct BSTNode {
T data;
int h;
BSTNode * lchild, *rchild;
};
template
class AVLTree {
public:
AVLTree() :root(NULL),node_num(0) {}
~AVLTree() { Release(root); }
void Clear() { Release(root); root = NULL; }
bool Inser
<weixin_43869091> 上传 | 大小:7kb