...

/

Solved Problem - Merge Sorted Arrays

Solved Problem - Merge Sorted Arrays

In this lesson, we'll discuss how to merge two sorted arrays.

We'll cover the following...

Problem statement

Given two sorted arrays, A[]A[] and B[]B[], of sizes NN and MM respectively, merge them into a single array of size N+MN+M and print the array.

Input format

The first line consists of two space-separated integers N,MN, M ...