Removed bubblesort bcs whynot

This commit is contained in:
gastonchenet
2025-09-10 16:30:00 +00:00
parent e39b1fefbb
commit 809b3408c7
2 changed files with 0 additions and 27 deletions

View File

@@ -1,21 +0,0 @@
// Bubblesort Algorithm
// M.Menault 2024
void bubblesort(int* array, int length)
{
int swapped, i, tmp;
do
{
swapped = 0;
for(i=1;i<length;i++)
{
if(array[i-1] > array[i])
{
tmp = array[i-1];
array[i-1] = array[i];
array[i] = tmp;
swapped++;
}
}
} while(swapped==1);
}

View File

@@ -1,6 +0,0 @@
#ifndef __BUBBLESORT__
#define __BUBBLESORT__
void bubblesort(int* array, int length);
#endif