We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8de917d commit 2ebc986Copy full SHA for 2ebc986
sorting/heap_sort.c
@@ -6,6 +6,10 @@ void build_maxheap(int *a, int n);
6
7
/**
8
* max_heapify takes O(logn).
9
+ * @param a pointer to array a containing heap elements.
10
+ * @param i element at which max_heapify needs to be performed.
11
+ * @param n where n is number of elemnts in array a.
12
+ * @returns void.
13
*/
14
void max_heapify(int *a, int i, int n)
15
{
@@ -44,6 +48,9 @@ void heapsort(int *a, int n)
44
48
45
49
46
50
* build_maxheap takes O(n).
51
52
53
47
54
55
void build_maxheap(int *a, int n)
56
0 commit comments