131
правка
Изменения
→Модификации
combsort(a):
jump = n
bool swapped = true;
while (jump > 1 '''and''' swapped) {
if (jump > 1)
jump /= 1.24733;
swapped = false;
for ( i = 0; i + jump < size; ++i)
if (a[i + jump]< array[i])) {
swap(array[i], array[i + jump]);
swapped = true;