void quick_sort(List list, Location left, Location right){ if(left >= right) //terminating condition return; Location pivot = doPartition(list,left, right); quick_sort(list,left,pivot-1); quick_sort(list,pivot+1,right); }
int main(void) { printf("\nМаксимална сума в някоя от групите: %lu", doPartition(k)); printPartition(n, k); return 0; }