max_heapify procedure on heap

后端 未结 5 643
無奈伤痛
無奈伤痛 2021-01-22 02:27

i have these procedure

#include 
using namespace std;

int parent(int i ){
    return  i/2;
}

int left(int i ){
    return  2*i;
}

int right(i         


        
5条回答
  •  -上瘾入骨i
    2021-01-22 03:27

    Here is the version I wrote, you can take a look.

    http://code.google.com/p/clibutils/source/browse/src/c_heap.c

提交回复
热议问题