Question: this is C program please type the code for C In this problem, we are going to combine two arrays. First, you have to ask
this is C program please type the code for C
In this problem, we are going to combine two arrays. First, you have to ask the user for n and m corresponding to the length of the array A and B, respectively. Next, you have to ask for the elements stored in each array. Both arrays will store a sequence of sorted integer numbers (each sequence has non-repeated elements, but A and B can share elements). Your task is to create a new array C that stores the elements of A and B. The sequence stored in C must be sorted and must have non-repeated elements. Example: Input: A=[4,1,0,5]B=[5,2,0,1]Output:C=[5,4,2,1,0,1,5] Constrains: 1n,m1000 5000A[i],B[i]5000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
