顺序存储二叉树(Java代码实现)
package Tree;
public class ArrayBinaryDemo {
public static void main(String[] args) {
int[] arr = new int[]{1, 2, 3, 4, 5, 6, 7};
ArrayBinarTree arrayBinarTree = new ArrayBinarTree(arr);
arrayBinarTree.preOrder();
System.out.println();
arrayBinarTree.infixOrder();
System.out.println();
arrayBinarTree.postOrder();
}
}
//编写一个ArrayBinaryTree,实现顺序
共有 0 条评论