auto commit

This commit is contained in:
CyC2018
2018-04-18 13:46:04 +08:00
parent ee032c539e
commit 089dfb1d86
7 changed files with 32 additions and 37 deletions

View File

@ -581,7 +581,7 @@ public class MergeSort {
for (int k = lo; k <= hi; k++) {
if (i > mid) a[k] = aux[j++];
else if (j > hi) a[k] = aux[i++];
else if (aux[i].compareTo(a[j]) < 0) a[k] = aux[i++]; // 先进行这一步,保证稳定性
else if (aux[i].compareTo(a[j]) <= 0) a[k] = aux[i++]; // 先进行这一步,保证稳定性
else a[k] = aux[j++];
}
}