This commit is contained in:
2025-09-10 17:24:19 +02:00
parent ca552281c9
commit ef135a95e0
6 changed files with 15 additions and 13 deletions

View File

@@ -1,6 +1,3 @@
// Bubblesort Algorithm
// M.Menault 2024
void bubblesort(int* array, int length)
{
int swapped, i, tmp;
@@ -17,5 +14,5 @@ void bubblesort(int* array, int length)
swapped++;
}
}
} while(swapped==1);
} while(swapped > 0);
}