Computer Science, asked by lolz6109, 10 months ago

How to merge n two dimensional arrays in c++

Answers

Answered by gauravarduino
0

Explanation:

// Merge() function will merge the elements of array1 and array2 in array3. int i = 0, j = 0, k = 0; // Traverse both array. // Copy remaining elements of first array.

...

Case 3. Both the arrays are sorted in descending order.

Create an array array3[ ] of size n1 + n2.

Traverse array1[ ] and array2[ ] simultaneously.

Similar questions