LeetCode88-合并两个有序数组 LeetCode88-合并两个有序数组123456public void merge(int[] nums1, int m, int[] nums2, int n) { for (int i = 0; i != n; i++) { nums1[m+i] = nums2[i]; } Arrays.sort(nums1); } LeetCode 力扣 计算机基础 本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处! LeetCode141-环形链表 Previous LeetCode83-删除排序链表中的重复元素 Next Please enable JavaScript to view the comments