diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-02-18 00:02:53 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-02-18 00:02:53 +0000 |
commit | 49c4599639c9015ea879cc9d8ccf819e09df271d (patch) | |
tree | 67a962455283332fadbe4b820cfa05eef60b9d6d /wk3/lect/bubble.c | |
parent | 19fd1f6fe17e43ebd83020539a13af18197070cc (diff) |
Sat, Feb 17, 2024, 4:02 PM -08:00
Diffstat (limited to 'wk3/lect/bubble.c')
-rw-r--r-- | wk3/lect/bubble.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/wk3/lect/bubble.c b/wk3/lect/bubble.c new file mode 100644 index 0000000..3d95665 --- /dev/null +++ b/wk3/lect/bubble.c @@ -0,0 +1,20 @@ +#include <cs50.h> +#include <ctype.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> + +int main(void) { + +} + + +/* + look at each pair of numbers i & i +1 + if they're out of order swap them + repeat until completely sorted + + worst sorting method + O(n^2) + Q(n) +*/ |