From 5a28a2341e281ef601415629e5c5afdab71d1be1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E5=90=91=E9=98=B32?= <11904935+zhou-xiangyang-2@user.noreply.gitee.com> Date: Thu, 3 Nov 2022 09:22:14 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20a17280784734?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- codes/a17280784734/.keep | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 codes/a17280784734/.keep diff --git a/codes/a17280784734/.keep b/codes/a17280784734/.keep new file mode 100644 index 00000000..e69de29b -- Gitee From 5b9ff4b46bf05259cbcb33db60f15ab79d230f39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E5=90=91=E9=98=B32?= <11904935+zhou-xiangyang-2@user.noreply.gitee.com> Date: Thu, 3 Nov 2022 09:23:21 +0000 Subject: [PATCH 2/2] add codes/a17280784734/10045776.java. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 周向阳2 <11904935+zhou-xiangyang-2@user.noreply.gitee.com> --- codes/a17280784734/10045776.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 codes/a17280784734/10045776.java diff --git a/codes/a17280784734/10045776.java b/codes/a17280784734/10045776.java new file mode 100644 index 00000000..a5f94c2c --- /dev/null +++ b/codes/a17280784734/10045776.java @@ -0,0 +1,19 @@ +/** + * 冒泡排序函数 + * aa bb cc + * @param a 待排序的数组 + * @param n 待排序的数组长度 + */ +public static void bubbleSort(int [] a, int n){ + // 你的代码,使无序数组 a 变得有序 + for(int i=0;i a[j+1]){ + int temp = a[j]; + a[j] = a[j+1]; + a[j+1] = temp; + } + } + } + +} //end \ No newline at end of file -- Gitee