(T[] unsorted)
| 3 | private HeapSort() { } |
| 4 | |
| 5 | public static <T extends Comparable<T>> T[] sort(T[] unsorted) { |
| 6 | createHeap(unsorted); |
| 7 | sortHeap(unsorted); |
| 8 | return unsorted; |
| 9 | } |
| 10 | |
| 11 | private static <T extends Comparable<T>> void sortHeap(T[] unsorted) { |
| 12 | int length = unsorted.length; |
no test coverage detected