diff --git a/bubblesort.c b/bubblesort.c deleted file mode 100644 index a848827..0000000 --- a/bubblesort.c +++ /dev/null @@ -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 array[i]) - { - tmp = array[i-1]; - array[i-1] = array[i]; - array[i] = tmp; - swapped++; - } - } - } while(swapped==1); -} diff --git a/bubblesort.h b/bubblesort.h deleted file mode 100644 index 457050b..0000000 --- a/bubblesort.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef __BUBBLESORT__ -#define __BUBBLESORT__ - -void bubblesort(int* array, int length); - -#endif