DA-1
DA-1
list which combines both lists in sorted order and display it. Avoid using
builtin functions for sorting.
Input format
Get list1
Get list 2
Output format
For example:
Input Result
[1, 5, 8, 14, 16]
[2, 4, 6, 9, 11]
[1, 2, 4, 5, 6, 8, 9, 11, 14, 16]
[11, 14, 19, 23, 25]
[3, 17, 22, 27]
[3, 11, 14, 17, 19, 22, 23, 25, 27]
Answer:
return merged_list