Write program that merges two sorted linked lists


Problem

Write program that merges two sorted linked lists to form a single sorted linked list. To solve this problem, write program that performs the following steps:

• Declare an array of 20 spaces, and randomly assign 20 integers between 1 and 1000.

• Sort this array in ascending order by selection sort.

• Organize the contents of the sorted array into a sorted linked list (the linked list variable is a), and print each node of the list in order.

• Construct a linked list b, and print each node in the list in order (repeat steps 1, 2, 3).

• Merge the linked lists of a and b to form 40 linked lists d sorted into one, and print each node of the list d in order.plz solve this problem use C language.

Request for Solution File

Ask an Expert for Answer!!
Data Structure & Algorithms: Write program that merges two sorted linked lists
Reference No:- TGS03256901

Expected delivery within 24 Hours