Search

To write a program to merge two sorted array and display the merge array in sorting order.

by 10:14:00 0 comments
To write a program to merge two sorted array and display the merge array in sorting order.




source code:


m,n=raw_input().split()
m=int(m)
n=int(n)
a=map(int,raw_input().split())
b=map(int,raw_input().split())
c=a+b
c.sort()
for i in c:
    print i,


Input:

4 4 
1 2 3 4 
3 5 6 7

Output:

1 2 3 3 4 5 6 7




                                                             


Anonymous

Developer

This is created by GAVASKAR .

0 comments:

Post a Comment