Help with error

sol: https://ide.codingblocks.com/s/406735

problem: merge 2 sorted linked lists

You have to add each element at the tail of the linked list. And after that you have to merge them. Do these changes, send me updated code if it still doesn’t pass test cases. Will debug it for you.

ohh thanks didn’t know that the lists had to be sorted in ascending order, it’s working now.

Doubt clear? Can i mark it as resolved?

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

yeah sure you can mark it