public class Main { public static void main(String[] args) { // Test code int[] arr = {3, 5, 2, 7, 1, 4, 6}; int[] tmp = new int[arr.length]; mergeSort(arr, tmp, 0, arr.length - 1); System.out.println("합병 정렬: " + Arrays.toString(arr)); } public static void mergeSort(int[] arr, int[] tmp, int left, int right) { if (left