Dsa
Sorting
Medium
Sorted List Merge
You are given two sorted lists of integers. Your task is to merge these two lists into a single sorted list while preserving the original order. The input consists of two lines, each line containing space-separated integers. Print the merged sorted list.
Example:
Input:
1 3 5 7
2 4 6 8
Output:
1 2 3 4 5 6 7 8
Key concepts
sortingmerging
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now