(given) two integer arrays nums1
and nums2
,
sorted in non-decreasing order, and two integers m
and n
, representing the
number of elements in nums1
and nums2
respectively.
(goal) Merge nums1
and nums2
into a single array sorted in non-decreasing order.