summaryrefslogtreecommitdiff
path: root/wk3/lab/bubble.c
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-02-17 23:32:41 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-02-17 23:32:41 +0000
commit8c2a6725d4dd95398da287d54bde6b4ef08f8688 (patch)
treed1880305db343d80552eb7d5606b27573c9f93a7 /wk3/lab/bubble.c
parent71d4187657bd06f03a6111f66e9f2dd4ec7d1712 (diff)
Sat, Feb 17, 2024, 3:32 PM -08:00
Diffstat (limited to 'wk3/lab/bubble.c')
-rw-r--r--wk3/lab/bubble.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/wk3/lab/bubble.c b/wk3/lab/bubble.c
new file mode 100644
index 0000000..6d6c5bb
--- /dev/null
+++ b/wk3/lab/bubble.c
@@ -0,0 +1,19 @@
+#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)
+*/