Quote (Tricon @ Nov 23 2014 09:54pm)
oops, I forgot to take into account starting at index 0, so i would have had to start at 'int i = numOfElements - 1'
but its still not sorting correctly rip
i suggest you stop worrying about the entire sort for a moment and check if your heap works correctly first. draw it out by hand for each iteration, and compare it to what your code transforms it into.