Log in
← All problems

Merge two sorted lists

mediumLists20 XP

a and b are sorted from small to large. Return one sorted list with all their numbers, by walking through both lists (no sorting).

Examples

Examples use JSON: true/false/null are True/False/None in Python.

Run examples checks the examples above. Submit also runs 3 hidden tests.