mirror of
https://github.moeyy.xyz/https://github.com/TheAlgorithms/C.git
synced 2023-10-11 15:56:24 +08:00
Update sorting/heap_sort.c
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
parent
43087d6a13
commit
bf408191ae
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user