多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
```java public static <T extends Comparable> void mergeSort(T[] a) { mergeAux = new Comparable[a.length]; mergeSort(a, 0, a.length - 1); } public static <T extends Comparable> void mergeSort(T[] a, int low, int high) { if (high <= low) { return; } int middle = low + (high - low) / 2; mergeSort(a, low, middle); mergeSort(a, middle + 1, high); merge(a, low, middle, high); } ```