mirror of
https://github.com/CodePanda66/CSPostgraduate-408.git
synced 2023-05-21 21:49:33 +08:00
38 lines
591 B
C++
38 lines
591 B
C++
//
|
|
// Created by Kim Yang on 2020/9/4.
|
|
// Copyright (c) Kim Yang All rights reserved.
|
|
//
|
|
#include <stdio.h>
|
|
|
|
//平衡二叉树
|
|
/**定义模块**/
|
|
typedef struct AVLNode {
|
|
int key; //数据域
|
|
int balance;//平衡因子
|
|
struct AVLNode *lchild, *rchild;
|
|
} AVLNode, *AVLTree;
|
|
|
|
/**定义模块**/
|
|
|
|
|
|
/**实现模块**/
|
|
//坐等填坑
|
|
|
|
/**实现模块**/
|
|
|
|
|
|
/**测试模块**/
|
|
|
|
void testModule() {
|
|
printf("开始测试!\n");
|
|
|
|
//坐等填坑
|
|
|
|
printf("结束测试!\n");
|
|
}
|
|
|
|
/**测试模块**/
|
|
int main() {
|
|
testModule();
|
|
return 0;
|
|
} |