rge Two Arrays [AZ-R1] (Id-2946)
Author: SKILLRACK
Two Arrays A and B contain Mand N elements sorted in non-decreasing order. The program must merge the two
Arrays into a single non-decreasing Array of size M+N and print the merged Array elements as the output
Input Format:
The first line contains M
Next M lines contain the values for elements in Array A
Next (M+2)th line contains N
Next N lines contain the values for elements in Array B
Output Format:
M+N lines containing the elements in the merged Array in non decreasing order.
Boundary Conditions:
1 <= MN <= 20
Example Input/Output 1:
Input:
4
1
5
7
Answers
Answered by
0
Answer:
:)
Similar questions
Physics,
1 month ago
Social Sciences,
9 months ago