Merged linkedlist

Hello. How would you do a merged linkedlist from two other linked lists of the same size?
Example:
List 1: Head → 1 → 7 → 20 → null
List 2: Head → 4 → 13 → 2 → null
New list with mergeLinkedLists:
Head → 1 → 4 → 7 → 13 → 20 → 2 → null

I’m really strugling on this four hours…

What have you tried so far? What code do you have written?

I was so tilted that i delete all the code, and go to the next exercise. In a moment i will try it to code it again so i can share it

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.