I have a heapsort, and would like to implement it recursively. What do I need to change in my algorithm?
void criarHeap(int v[], int inicio, int final){
int aux = v[inicio];//v[pai]//inicio=pai
int filho = (inicio * 2)+1;//i=filho
whil...
asked by
05.08.2018 / 18:39