auto commit
This commit is contained in:
@ -443,7 +443,7 @@ public abstract class MergeSort<T extends Comparable<T>> extends Sort<T> {
|
||||
} else if (j > h) {
|
||||
nums[k] = aux[i++];
|
||||
|
||||
} else if (aux[i].compareTo(nums[j]) <= 0) {
|
||||
} else if (aux[i].compareTo(aux[j]) <= 0) {
|
||||
nums[k] = aux[i++]; // 先进行这一步,保证稳定性
|
||||
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user