Open mihai511 opened 5 years ago
void ordering_array(int arr[], int i, int n){ int j; int aux = arr[i];
j = 2 * i; while(j <= n){ if( (j < n) && (arr[j+1] < arr[j]) ) j++; if (aux < arr[j]) break; else{ arr[j/2] = arr[j]; j = 2 * j; } } arr[j/2] = aux; return;
}
void ordering_array(int arr[], int i, int n){ int j; int aux = arr[i];
}