DIY: Merge Sorted Arrays
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 merges the second array into the ...
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy