Merge sorted Linked list

https://ide.codingblocks.com/s/179613 this is my code it is printing first 2 elements twice can’t figure out what the mistake is …

Hello @Vivek-Pandey-2129725577345937,

You are storing first element in each linked list twice.
The mistake is in the code of creating linked list.

Reason:
You are not returning after inserting the first element.

I have modified your code:

Hope, this would help.
Give a like if you are satisfied.