Skip to content

Commit 8de917d

Browse files
authored
Update heap_sort.c
1 parent 18ee0c1 commit 8de917d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sorting/heap_sort.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
void max_heapify(int *a, int i, int n);
44
void heapsort(int *a, int n);
55
void build_maxheap(int *a, int n);
6+
67
/**
78
* max_heapify takes O(logn).
89
*/
@@ -40,6 +41,7 @@ void heapsort(int *a, int n)
4041
max_heapify(a, 1, i - 1);
4142
}
4243
}
44+
4345
/**
4446
* build_maxheap takes O(n).
4547
*/

0 commit comments

Comments
 (0)