Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update heap_sort.c #619

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update sorting/heap_sort.c
Co-authored-by: David Leal <halfpacho@gmail.com>
  • Loading branch information
Shwetik and Panquesito7 authored Sep 30, 2020
commit bf408191aea056933ea8f5803c6e49d4958396a1
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