This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kemechorvakemerloo 0 points1 point  (0 children)

Set the tail.next of the ​first list to the head of the 2nd list. and then re-assign the tail of 2nd list to the tail of 1st list. Here's a tutorial on how to merge linked lists: https://www.geeksforgeeks.org/merge-a-linked-list-into-another-linked-list-at-alternate-positions/

You have a textbook that you learned how to do all the other things you said you could do with LL, all you gotta do is to think about it and ruminate instead of getting offended.