From 809b3408c7431e318af5ce7722d6e075a004bdbe Mon Sep 17 00:00:00 2001 From: gastonchenet Date: Wed, 10 Sep 2025 16:30:00 +0000 Subject: [PATCH] Removed bubblesort bcs whynot --- bubblesort.c | 21 --------------------- bubblesort.h | 6 ------ 2 files changed, 27 deletions(-) delete mode 100644 bubblesort.c delete mode 100644 bubblesort.h 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