Write C Program Take Two Integer Arrays Ascending Order Combine New Array Descending Order Q37061643

Write a C program to take two integer arrays inascending order and combine them in a new array in descendingorder. Remove any duplicates in the final array, if any.Your code must store the arrays as a linked list ofobjects, each put in a “struct.” Alloperations should also be carried out using linkedlists.

Input: 2 sorted arrays, each on a new line.

Output: An array sorted in descending order, withoutduplicates.

There is a single white space after each number, even after thelast number. There is no new line at the end. Use the followingstruct as a reference:

struct ELEMENT {

int value;

struct ELEMENT *next;

};

=== Sample test

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.