Wrong Answer for Merge Sorted Linked Lists Solution

Respected Sir/Ma’am,

I have double-checked my code and also tested for multiple test cases and other compilers. My code seems to be working fine. Could you please tell me why the solution is not getting accepted?

Yours Sincerely,
Ajay Bhat.

@ajay_bhat hi buddy lemme verify from my side!

@ajay_bhat bro just add a new line after printing every test case, rest your code is correct. very good, keep it up!

Just add new line so every test case is printed in new line.
And if your doubt is resolved then close it by marking it resolved bro!
Happy coding!

Thanks a lot for assisting me. I am happy all test cases passed.