From 712b37490c2487ffba9fbd718c51d63cbfa0c444 Mon Sep 17 00:00:00 2001 From: smallkun Date: Thu, 3 Apr 2025 10:19:55 +0800 Subject: [PATCH] Auto commit --- 冒泡、选择、插入排序.md | 43 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 冒泡、选择、插入排序.md diff --git a/冒泡、选择、插入排序.md b/冒泡、选择、插入排序.md new file mode 100644 index 0000000..e39dbce --- /dev/null +++ b/冒泡、选择、插入排序.md @@ -0,0 +1,43 @@ +### 冒泡排序 + +```c +#include + +void bubblingSort(int *a, int n, int flag){ + int i, j, t; + for(i=0;i0?a[j]>a[j+1]:a[j]