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 heap_sort.c
  • Loading branch information
Shwetik authored Sep 30, 2020
commit 18ee0c1546bc95e43cad013f0f7f19141de1758f
5 changes: 0 additions & 5 deletions sorting/heap_sort.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/**
* max_heapify takes O(logn).
* build_maxheap takes O(n).
* heapsort takes O(nlogn) since it requires above mentioned functions.
*/
#include <stdio.h>

void max_heapify(int *a, int i, int n);
Expand Down