From 66f562039c1f5081fff1edcb2f0c095b8b89fe38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BA=9A=E8=8C=B9?= <767985952@qq.com> Date: Fri, 16 Sep 2022 06:44:07 +0000 Subject: [PATCH 01/13] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20wang-yaru01?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- codes/wang-yaru01/.keep | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 codes/wang-yaru01/.keep diff --git a/codes/wang-yaru01/.keep b/codes/wang-yaru01/.keep new file mode 100644 index 00000000..e69de29b -- Gitee From 5f6ab9d1ae58cf33cfc52f022f107146b82bed7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BA=9A=E8=8C=B9?= <767985952@qq.com> Date: Fri, 16 Sep 2022 06:45:19 +0000 Subject: [PATCH 02/13] add codes/wang-yaru01/test.java. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王亚茹 <767985952@qq.com> --- codes/wang-yaru01/test.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 codes/wang-yaru01/test.java diff --git a/codes/wang-yaru01/test.java b/codes/wang-yaru01/test.java new file mode 100644 index 00000000..a62ff0bf --- /dev/null +++ b/codes/wang-yaru01/test.java @@ -0,0 +1,22 @@ +public static void main7(String[] args) { + int[] array = 10,5,3,7,6}; + myBubblesort(array); + System.out.println(Arrays.toString(array)); +} +public static void myBubblesort(int[] array){ + for (int i = 0; i < array.length-1; i++) { + boolean flg = false; + for (int j = 0; j < array.length-1-i; j++) { + if(array[j] > array[j+1]){ + int tmp = 0; + tmp = array[j]; + array[j] = array[j+1]; + array[j+1] = tmp; + flg = true; + } + } + if(flg == false){ + return; + } + } +} \ No newline at end of file -- Gitee From 7546386e96a669081e2e2e691b9effc696cb92fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BA=9A=E8=8C=B9?= <767985952@qq.com> Date: Fri, 16 Sep 2022 06:47:51 +0000 Subject: [PATCH 03/13] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20codes/wang-?= =?UTF-8?q?yaru01/test.java=20=E4=B8=BA=20codes/wang-yaru01/I5RFOP.java?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- codes/wang-yaru01/{test.java => I5RFOP.java} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename codes/wang-yaru01/{test.java => I5RFOP.java} (100%) diff --git a/codes/wang-yaru01/test.java b/codes/wang-yaru01/I5RFOP.java similarity index 100% rename from codes/wang-yaru01/test.java rename to codes/wang-yaru01/I5RFOP.java -- Gitee From a0a298aefdc949a85e59b0491f2162dc59590baa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BA=9A=E8=8C=B9?= <767985952@qq.com> Date: Fri, 16 Sep 2022 06:51:59 +0000 Subject: [PATCH 04/13] update codes/wang-yaru01/I5RFOP.java. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王亚茹 <767985952@qq.com> --- codes/wang-yaru01/I5RFOP.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codes/wang-yaru01/I5RFOP.java b/codes/wang-yaru01/I5RFOP.java index a62ff0bf..55e6e71e 100644 --- a/codes/wang-yaru01/I5RFOP.java +++ b/codes/wang-yaru01/I5RFOP.java @@ -1,4 +1,4 @@ -public static void main7(String[] args) { +public static void main(String[] args) { int[] array = 10,5,3,7,6}; myBubblesort(array); System.out.println(Arrays.toString(array)); -- Gitee From 3ec023c28711e4a993d106ed2fbd8f33fb410938 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BA=9A=E8=8C=B9?= <767985952@qq.com> Date: Fri, 16 Sep 2022 06:59:25 +0000 Subject: [PATCH 05/13] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20co?= =?UTF-8?q?des/wang-yaru01/I5RFOP.java?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- codes/wang-yaru01/I5RFOP.java | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 codes/wang-yaru01/I5RFOP.java diff --git a/codes/wang-yaru01/I5RFOP.java b/codes/wang-yaru01/I5RFOP.java deleted file mode 100644 index 55e6e71e..00000000 --- a/codes/wang-yaru01/I5RFOP.java +++ /dev/null @@ -1,22 +0,0 @@ -public static void main(String[] args) { - int[] array = 10,5,3,7,6}; - myBubblesort(array); - System.out.println(Arrays.toString(array)); -} -public static void myBubblesort(int[] array){ - for (int i = 0; i < array.length-1; i++) { - boolean flg = false; - for (int j = 0; j < array.length-1-i; j++) { - if(array[j] > array[j+1]){ - int tmp = 0; - tmp = array[j]; - array[j] = array[j+1]; - array[j+1] = tmp; - flg = true; - } - } - if(flg == false){ - return; - } - } -} \ No newline at end of file -- Gitee From b9e5046f5413327c56b1875bf530e9974e2051e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BA=9A=E8=8C=B9?= <767985952@qq.com> Date: Fri, 16 Sep 2022 07:00:17 +0000 Subject: [PATCH 06/13] add codes/wang-yaru01/I5RFOP.java. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王亚茹 <767985952@qq.com> --- codes/wang-yaru01/I5RFOP.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 codes/wang-yaru01/I5RFOP.java diff --git a/codes/wang-yaru01/I5RFOP.java b/codes/wang-yaru01/I5RFOP.java new file mode 100644 index 00000000..55e6e71e --- /dev/null +++ b/codes/wang-yaru01/I5RFOP.java @@ -0,0 +1,22 @@ +public static void main(String[] args) { + int[] array = 10,5,3,7,6}; + myBubblesort(array); + System.out.println(Arrays.toString(array)); +} +public static void myBubblesort(int[] array){ + for (int i = 0; i < array.length-1; i++) { + boolean flg = false; + for (int j = 0; j < array.length-1-i; j++) { + if(array[j] > array[j+1]){ + int tmp = 0; + tmp = array[j]; + array[j] = array[j+1]; + array[j+1] = tmp; + flg = true; + } + } + if(flg == false){ + return; + } + } +} \ No newline at end of file -- Gitee From 95e1d76a601a86aab3c966bdc83da02d8426c825 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BA=9A=E8=8C=B9?= <767985952@qq.com> Date: Fri, 16 Sep 2022 07:08:56 +0000 Subject: [PATCH 07/13] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20co?= =?UTF-8?q?des/wang-yaru01?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- codes/wang-yaru01/.keep | 0 codes/wang-yaru01/I5RFOP.java | 22 ---------------------- 2 files changed, 22 deletions(-) delete mode 100644 codes/wang-yaru01/.keep delete mode 100644 codes/wang-yaru01/I5RFOP.java diff --git a/codes/wang-yaru01/.keep b/codes/wang-yaru01/.keep deleted file mode 100644 index e69de29b..00000000 diff --git a/codes/wang-yaru01/I5RFOP.java b/codes/wang-yaru01/I5RFOP.java deleted file mode 100644 index 55e6e71e..00000000 --- a/codes/wang-yaru01/I5RFOP.java +++ /dev/null @@ -1,22 +0,0 @@ -public static void main(String[] args) { - int[] array = 10,5,3,7,6}; - myBubblesort(array); - System.out.println(Arrays.toString(array)); -} -public static void myBubblesort(int[] array){ - for (int i = 0; i < array.length-1; i++) { - boolean flg = false; - for (int j = 0; j < array.length-1-i; j++) { - if(array[j] > array[j+1]){ - int tmp = 0; - tmp = array[j]; - array[j] = array[j+1]; - array[j+1] = tmp; - flg = true; - } - } - if(flg == false){ - return; - } - } -} \ No newline at end of file -- Gitee From b0a283e38a7befe440794cf728a5d877dad0b928 Mon Sep 17 00:00:00 2001 From: wangyaru01 <767985952@qq.com> Date: Fri, 16 Sep 2022 15:32:02 +0800 Subject: [PATCH 08/13] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8E=92=E5=BA=8F?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- codes/wang-yaru01/9678121.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 codes/wang-yaru01/9678121.java diff --git a/codes/wang-yaru01/9678121.java b/codes/wang-yaru01/9678121.java new file mode 100644 index 00000000..3923f707 --- /dev/null +++ b/codes/wang-yaru01/9678121.java @@ -0,0 +1,22 @@ +/** + * 冒泡排序函数 + * aa bb cc + * @param a 待排序的数组 + * @param n 待排序的数组长度 + */ +public static void bubbleSort(int [] a, int n){ + // 你的代码,使无序数组 a 变得有序 + int i, j; + + for(i=0; ia[j]){ + int temp; + temp = a[j-1]; + a[j-1] = a[j]; + a[j] = temp; + } + } + } + +} //end -- Gitee From 99e47c65f7013d9865e314b7a61f083c6df5a715 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BA=9A=E8=8C=B9?= <767985952@qq.com> Date: Fri, 16 Sep 2022 07:41:27 +0000 Subject: [PATCH 09/13] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20wang-yaru01?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- codes/wang-yaru01/.keep | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 codes/wang-yaru01/.keep diff --git a/codes/wang-yaru01/.keep b/codes/wang-yaru01/.keep new file mode 100644 index 00000000..e69de29b -- Gitee From fa128a0f2e70846280aa17e2079accbe848abb23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BA=9A=E8=8C=B9?= <767985952@qq.com> Date: Fri, 16 Sep 2022 07:42:04 +0000 Subject: [PATCH 10/13] add codes/wang-yaru01/9678121.java. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王亚茹 <767985952@qq.com> --- codes/wang-yaru01/9678121.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 codes/wang-yaru01/9678121.java diff --git a/codes/wang-yaru01/9678121.java b/codes/wang-yaru01/9678121.java new file mode 100644 index 00000000..21261a09 --- /dev/null +++ b/codes/wang-yaru01/9678121.java @@ -0,0 +1,22 @@ +/** + * 冒泡排序函数 + * aa bb cc + * @param a 待排序的数组 + * @param n 待排序的数组长度 + */ +public static void bubbleSort(int [] a, int n){ + // 你的代码,使无序数组 a 变得有序 + int i, j; + + for(i=0; ia[j]){ + int temp; + temp = a[j-1]; + a[j-1] = a[j]; + a[j] = temp; + } + } + } + +} //end \ No newline at end of file -- Gitee From 1eca15e9461adf54d63ec9712fa7775187bf9f86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BA=9A=E8=8C=B9?= <767985952@qq.com> Date: Fri, 16 Sep 2022 07:44:33 +0000 Subject: [PATCH 11/13] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20co?= =?UTF-8?q?des/wang-yaru01/.keep?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- codes/wang-yaru01/.keep | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 codes/wang-yaru01/.keep diff --git a/codes/wang-yaru01/.keep b/codes/wang-yaru01/.keep deleted file mode 100644 index e69de29b..00000000 -- Gitee From d8f639779e72c1eee4c3fc33b38f2234b20f79e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BA=9A=E8=8C=B9?= <767985952@qq.com> Date: Fri, 16 Sep 2022 07:50:43 +0000 Subject: [PATCH 12/13] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20co?= =?UTF-8?q?des/wang-yaru01?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- codes/wang-yaru01/9678121.java | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 codes/wang-yaru01/9678121.java diff --git a/codes/wang-yaru01/9678121.java b/codes/wang-yaru01/9678121.java deleted file mode 100644 index 21261a09..00000000 --- a/codes/wang-yaru01/9678121.java +++ /dev/null @@ -1,22 +0,0 @@ -/** - * 冒泡排序函数 - * aa bb cc - * @param a 待排序的数组 - * @param n 待排序的数组长度 - */ -public static void bubbleSort(int [] a, int n){ - // 你的代码,使无序数组 a 变得有序 - int i, j; - - for(i=0; ia[j]){ - int temp; - temp = a[j-1]; - a[j-1] = a[j]; - a[j] = temp; - } - } - } - -} //end \ No newline at end of file -- Gitee From 448a40aa7244911c34a29caf7eac9d668e43b433 Mon Sep 17 00:00:00 2001 From: wangyaru01 <767985952@qq.com> Date: Fri, 16 Sep 2022 15:57:45 +0800 Subject: [PATCH 13/13] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8E=92=E5=BA=8F?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- codes/{wang-yaru01 => wangyaru01}/9678121.java | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename codes/{wang-yaru01 => wangyaru01}/9678121.java (100%) diff --git a/codes/wang-yaru01/9678121.java b/codes/wangyaru01/9678121.java similarity index 100% rename from codes/wang-yaru01/9678121.java rename to codes/wangyaru01/9678121.java -- Gitee