Skip to content

Commit

Permalink
Update sorting/heap_sort.c
Browse files Browse the repository at this point in the history
Co-authored-by: David Leal <halfpacho@gmail.com>
  • Loading branch information
Shwetik and Panquesito7 committed Sep 30, 2020
1 parent 43087d6 commit bf40819
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sorting/heap_sort.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit bf40819

Please sign in to comment.