diff --git a/notes/算法.md b/notes/算法.md index fa740d34..a0995ebe 100644 --- a/notes/算法.md +++ b/notes/算法.md @@ -567,8 +567,6 @@ public class Shell { 归并方法将数组中两个已经排序的部分归并成一个。 -

- ```java public class MergeSort { private static Comparable[] aux; @@ -592,6 +590,9 @@ public class MergeSort { ### 2. 自顶向下归并排序 +

+ + ```java public static void sort(Comparable[] a) { aux = new Comparable[a.length];