Merge Sorted Lists
Start Timer
0:00:00
Given two sorted lists, write a function to merge them into one sorted list.
Bonus: What’s the time complexity?
Example:
Input:
list1 = [1,2,5]
list2 = [2,4,6]
Output:
def merge_list(list1,list2) -> [1,2,2,4,5,6]
Recommended questions for you
Personalized based on your user activity, skill level, and preferences.
.
.
.
.
.
.
.
.
.
Comments