-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmain.java
More file actions
24 lines (18 loc) · 519 Bytes
/
main.java
File metadata and controls
24 lines (18 loc) · 519 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import sort.sort;
public class main {
public static void main(String[] args) {
// TODO Auto-generated method stub
//¶þ²æÊ÷²âÊÔ
int[] is = { 5, 2, 1, 6, 3, 4 };
// Tree tree = BinaryTree.createTree(is);
// BinaryTree.deleteNode(tree, 3);
// BinaryTree.PrintInorder(tree.root);
// BinaryTree.PrintInorder(tree);
// BinaryTree.PrintPostorder(tree);
// BinaryTree.PrintPreOrder(tree);
sort.quickSort(is, 0, is.length - 1);
for(int i = 0; i< is.length; i++){
System.out.println(is[i]);
}
}
}