AB兩個排序數組,原地合併數組。

原理如下圖:         public class Merge { static Integer[] unionArray(int[] a,int[] b){ List c = new ArrayList(); int i = 0; int j = 0; while (i<a.length && j<a.
相關文章
相關標籤/搜索