Write a function to merge two linked lists. The input lists have their elements in sorted order,

Question:

Write a function to merge two linked lists. The input lists have their elements in sorted order, from smallest to highest. The output list should also be sorted from highest to lowest. Your algorithm should run in linear time on the length of the output list.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: