From 8de917de6e1be8aeb1d2d016ce4c0bcd426caa19 Mon Sep 17 00:00:00 2001 From: Shezza221b <41204318+Shezza221b@users.noreply.github.com> Date: Thu, 1 Oct 2020 04:28:23 +0530 Subject: [PATCH] Update heap_sort.c --- sorting/heap_sort.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sorting/heap_sort.c b/sorting/heap_sort.c index 30b2208b..ba3ddb57 100644 --- a/sorting/heap_sort.c +++ b/sorting/heap_sort.c @@ -3,6 +3,7 @@ void max_heapify(int *a, int i, int n); void heapsort(int *a, int n); void build_maxheap(int *a, int n); + /** * max_heapify takes O(logn). */ @@ -40,6 +41,7 @@ void heapsort(int *a, int n) max_heapify(a, 1, i - 1); } } + /** * build_maxheap takes O(n). */