原创 歸併排序mergeSort以及小和問題

歸併排序 時間複雜度O(N*logN),額外空間複雜度O(N),實現可以做到穩定性 #include <cstdio> #include <cstdlib> void merge(int A[], int L, int mid, int