The TransCompilator

Solved LeetCode program · 21 of 1,000

#0021 · Merge Two Sorted Lists

Easy Linked List chunk-01.md

Original English source

The first is a list of 1, 2, and 4. The second is a list of 1, 3, and 4. The combined is an empty list of whole numbers. For each number in first, Place number into combined. For each number in second, Place number into combined. Sort combined. For each number in combined, show number.

Open in Playground Browse all 1,000 problems

Expected stdout

1
1
2
3
4
4