mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Bug Fix heap sort [Fresh Implementation]
This commit is contained in:
parent
549daeebfd
commit
38db7fdec0
@ -44,9 +44,7 @@ auto printArray = [] (int *arr, int sz) {
|
||||
* The heapify procedure can be thought of as building a heap from
|
||||
* the bottom up by successively sifting downward to establish the
|
||||
* heap property.
|
||||
*
|
||||
* @param arr array be to sorted
|
||||
* @param
|
||||
*
|
||||
*/
|
||||
void(*heapify)(int *arr, int n, int i) = [] (int *arr, int n, int i) {
|
||||
int largest = i;
|
||||
|
Loading…
Reference in New Issue
Block a user