Update sorting/heap_sort.c

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
Shezza221b 2020-10-01 05:13:36 +05:30 committed by GitHub
parent 43087d6a13
commit bf408191ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,11 +5,11 @@ void heapsort(int *a, int n);
void build_maxheap(int *a, int n);
/**
* max_heapify takes O(logn).
* @param a pointer to array a containing heap elements.
* @param i element at which max_heapify needs to be performed.
* @param n where n is number of elemnts in array a.
* @returns void.
* max_heapify takes O(logn)
* @param a pointer to array a containing heap elements
* @param i element at which max_heapify needs to be performed
* @param n where n is number of elemnts in array a
* @returns void
*/
void max_heapify(int *a, int i, int n)
{