88 Merge Sorted Array
Given two sorted integer arraysnums1andnums2, mergenums2intonums1as one sorted array.
Note: You may assume that nums1 has enough space (size that is greater or equal tom+n) to hold additional elements fromnums2. The number of elements initialized in nums1 and nums2 are m and n respectively.
merge两个数组,数组1有足够的空间装下数组2。注意从后面开始merge。
Last updated