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
- Input: a = [1, 3, 5], b = [2, 4, 6]Output: [1, 2, 3, 4, 5, 6]
- Input: a = [], b = [1, 2]Output: [1, 2]
Examples use JSON: true/false/null are True/False/None in Python.