Question: Write a function that will merge the contents of two sorted (ascending order) arrays of type double values, storing the result in an array output
Write a function that will merge the contents of two sorted (ascending order) arrays of type double values, storing the result in an array output parameter (still in ascending order). The function should not assume that both its input parameter arrays are the same length but can assume that one array does not contain two copies of the same value. The result array should also contain no duplicate values. The merge process should be completed in a function. Arrange the input and output arguments accordingly. Declare the merged array large enough to hold both arrays. User m_first and m_last as indices for the first element and last element in the merged list respectively
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
