Update sorting/heap_sort.c

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

View File

@ -47,10 +47,10 @@ void heapsort(int *a, int n)
}
/**
* build_maxheap takes O(n).
* @param a pointer to array a containing heap elements.
* @param n where n is number of elemnts in array a.
* @returns void.
* build_maxheap takes O(n)
* @param a pointer to array a containing heap elements
* @param n where n is number of elemnts in array a
* @returns void
*/
void build_maxheap(int *a, int n)
{