DIY: Merge Sorted Arrays
Solve the interview question "Merge Sorted Arrays" in this lesson.
Problem statement
Let’s say you are given two sorted integer arrays, nums1
and nums2
. You are also given the number of elements initialized in both of the arrays, which are m
and n
, respectively. Implement a function that ...