summaryrefslogtreecommitdiff
path: root/wk3/lab/bubble.c
diff options
context:
space:
mode:
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)
+*/