Problem Description

Given two sorted arrays, merge them using a function and print the merged list.

Input Format

Line1 n m. Line2 n ints. Line3 m ints.

Output Format

One line merged.

Sample Test Case

Input:
3 4 1 4 9 2 3 8 10
Output:
1 2 3 4 8 9 10

Constraints

n+m

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next