-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
15 lines (12 loc) · 795 Bytes
/
Copy pathMain.java
File metadata and controls
15 lines (12 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import com.jumbuna.algs.*;
import com.jumbuna.ds.*;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
Integer[] array = {5, 8, 2, 2, 5, 7, 0, 9, 15, 3, 22, 12, 13, 82, 61, 23, 5, 8, 2, 2, 5, 7, 0, 9, 15, 3, 22, 12, 13, 82, 61, 23, 5, 8, 2, 2, 5, 7, 0, 9, 15, 3, 22, 12, 13, 82, 61, 23, 5, 8, 2, 2, 5, 7, 0, 9, 15, 3, 22, 12, 13, 82, 61, 23, 5, 8, 2, 2, 5, 7, 0, 9, 15, 3, 22, 12, 13, 82, 61, 23, 5, 8, 2, 2, 5, 7, 0, 9, 15, 3, 22, 12, 13, 82, 61, 23, 5, 8, 2, 2, 5, 7, 0, 9, 15, 3, 22, 12, 13, 82, 61, 23, 5, 8, 2, 2, 5, 7, 0, 9, 15, 3, 22, 12, 13, 82, 61, 23};
long t1 = System.currentTimeMillis();
HeapSort.heapSort(array);
System.out.println(Arrays.toString(array));
System.out.println(array.length);
}
}