代码拉取完成,页面将自动刷新
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);
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。