Your question is Combine Two Sorted Arrays. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Akamai Edge DNS can produce sorted metric batches from separate edge-processing streams. Given two arrays of integers sorted in nondecreasing order, merge them into one sorted array.
Return a new array containing every value from both input arrays, including duplicates. Do not call a sorting function on the combined values.
Implement merge_sorted_arrays(nums1, nums2):
nums1 and nums2, each sorted in nondecreasing order.nums1 and nums2, sorted in nondecreasing order.def merge_sorted_arrays(nums1, nums2):