Data structure

profileIbraheem95

 

Before midnight



Create a new linked list from two given arrays with the greater element from each corresponding array element placed into the linked list.
 

Given two arrays of varying size, the task is to create a new linked list using those arrays. The condition is that the greater element value from each corresponding array element will be added to the new liked list.  When the program has reached the end of the shorter array, the remaining elements of the longer array will be added to the end of the linked list.  

OUTPUT:

Display both arrays and the resulting linked list. 

Also include your thoughts on the challenges this program would create if the resulting data structure were an array instead of a linked list.  

    • 7 years ago
    • 70
    Answer(1)

    Purchase the answer to view it

    blurred-text
    NOT RATED