Question: sort the tow array in data structure like : int array1[ ] ={3,4,6,7,9,30,11,15,17,19,22,29} , and int array2={22,30,35,60,10,12,15,20} , and second make a method call merge

sort the tow array in data structure like :
int array1[ ] ={3,4,6,7,9,30,11,15,17,19,22,29} , and int array2={22,30,35,60,10,12,15,20} ,
and second make a method call merge like :
void merge(int []A, int p, int q , int r) {} that merging the tow arrays
the output will be like that :
the first array: 3 4 6 7 9 11 15 17 19 22 29 30
the second array: 10 12 15 20 22 30 35 60
the code in c++ please
 sort the tow array in data structure like : int array1[

Lab #1 1) Write a program that merge the two sorted lists Input: 3 6 7 9 30 11 15 17 19 22 29 P=0,q=5, 2+1-6, and r-11 22 30 35 60 10 12 15 20 P=0,q=3, q+1=4, and r-7

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!