From 8ef6806141218c43b4e25a7a15f3cd84ddab0d61 Mon Sep 17 00:00:00 2001 From: liufq <315458488@qq.com> Date: Fri, 24 Feb 2023 18:05:39 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=BD=92=E5=B9=B6=E7=AE=97=E6=B3=95=E6=8E=92?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Solution.java" | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git "a/exercises/liufq/\344\270\255\347\255\211/\345\275\222\345\271\266\346\216\222\345\272\217/Solution.java" "b/exercises/liufq/\344\270\255\347\255\211/\345\275\222\345\271\266\346\216\222\345\272\217/Solution.java" index bf796c3..4f8e810 100644 --- "a/exercises/liufq/\344\270\255\347\255\211/\345\275\222\345\271\266\346\216\222\345\272\217/Solution.java" +++ "b/exercises/liufq/\344\270\255\347\255\211/\345\275\222\345\271\266\346\216\222\345\272\217/Solution.java" @@ -5,8 +5,8 @@ class Solution { } int[] helper = new int[nums.length]; mergeSort(nums, helper, 0, nums.length - 1); - for (int i = 0; i < helper.length; i++) { - System.out.println(helper[i]); + for (int i = 0; i < nums.length; i++) { + System.out.println(nums[i]); } } -- GitLab