LearnPy Hub
← Arena
IntermediateRating 1100

Merge in Place

Merge two sorted lists into one sorted list using two pointers (not sort()).

Input

Two lines of sorted integers.

Output

One line.

Sample 1

Input
1 3 5
2 4 6
Output
1 2 3 4 5 6

Sample 2

Input
1
2
Output
1 2
solution.py
Output appears here
Merge in Place · Python Arena problem · LearnPy Hub