1 Star 0 Fork 0

CS-IMIS-23/linan20172330newterm

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
AVLTreeTest.java 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
远方 提交于 7年前 . pp11.8
package week7;
import static week7.AVLTree.initTreeAndShowData;
public class AVLTreeTest {
public static void main(String[] args) {
System.out.println("输入:");
int[] nodeValues = {9, 6, 10, 5, 8, 7, 11};
AVLTree<Integer> tree = initTreeAndShowData(nodeValues);
System.out.println("输出:");
tree.show(tree.root);
System.out.println("输入:");
nodeValues = new int[]{9};
tree = initTreeAndShowData(nodeValues);
System.out.println("输出:");
tree.show(tree.root);
System.out.println("输入:");
nodeValues = new int[]{9, 3, 2, 1, 13, 80, 54, 26, 90, 52, 70, 24, 27, 8, 10};
tree = initTreeAndShowData(nodeValues);
System.out.println("输出:");
tree.show(tree.root);
System.out.println("输入:");
nodeValues = new int[]{7, 5, 10, 8, 11, 9};
tree = initTreeAndShowData(nodeValues);
System.out.println("输出:");
tree.show2(tree.root);
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/CS-IMIS-23/linan20172330newterm.git
git@gitee.com:CS-IMIS-23/linan20172330newterm.git
CS-IMIS-23
linan20172330newterm
linan20172330newterm
master

搜索帮助