Skip to content

Commit

Permalink
Merge pull request #27 from Amisha328/patch-1
Browse files Browse the repository at this point in the history
Added heap sort in C++
  • Loading branch information
Isha307 authored Jul 29, 2021
2 parents 8c82ae5 + 0822b2c commit 492322a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Sorting/heap_sort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ void printArray(int arr[], int n)

int main()
{

int n;
cout<<"Enter size of array\n";
cin>>n;
Expand All @@ -53,7 +52,6 @@ int main()
for(int i=0;i<n;i++){
cin>>arr[i];
}

cout<<"Original Unsorted array is:\n";
printArray(arr,n);
heapSort(arr, n);
Expand Down

0 comments on commit 492322a

Please sign in to comment.