I have wrote a simple heap sort code but can't get the heapify method right. Can someone please help me with this. My code is below if you would like to see what i have done so far.
public class HeapSort {
public static int[] heapify(int[] list) {
}
//Reheap. Used during actual sorting
public...