From 2ebc98620c4738e8ef1fae1488451f260d2344a5 Mon Sep 17 00:00:00 2001 From: Shezza221b <41204318+Shezza221b@users.noreply.github.com> Date: Thu, 1 Oct 2020 04:55:51 +0530 Subject: [PATCH] Update heap_sort.c --- sorting/heap_sort.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sorting/heap_sort.c b/sorting/heap_sort.c index ba3ddb57..dc901736 100644 --- a/sorting/heap_sort.c +++ b/sorting/heap_sort.c @@ -6,6 +6,10 @@ 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. */ void max_heapify(int *a, int i, int n) { @@ -44,6 +48,9 @@ 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. */ void build_maxheap(int *a, int n) {