Skip to content

Update heap_sort.c #619

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

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
Next Next commit
Update sorting/heap_sort.c
Co-authored-by: David Leal <[email protected]>
  • Loading branch information
Shwetik and Panquesito7 authored Sep 30, 2020
commit 43087d6a1350bba79491a20ebc332bc9c3c60f1c
8 changes: 4 additions & 4 deletions sorting/heap_sort.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ 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.
* 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)
{
Expand Down