what problem is there in this code ??
Merge sorted linked list
Muskan, I have edited your code, In your code TLE was coming because you were using for loop for building list, which would take a long time for very large input values, so i have made some changes in the code… I have added one buildlist function, for building the list, which only takes head of the linked list… Also, this function calls another function called as addTail, which you have already used in your code… Instead of passing the two parameters only as pointers, I have used one as data… This is the edited code, try to submit now…
Since, you arent replying anything, I am marking this doubt as resolved… You can reopen it if u still face any issues…