Program 23
Write a function called merge that takes two already sorted lists
of possibly different lengths, and merges them into a single sorted list.
(a) Do this using the sort method. (b) Do this without using the
sort method.
Program:
(a) Using the sort method.
(b) Without using the sort method.
Output:
No comments:
Post a Comment