What is wrong with my code?
Merge Sorted LinkedLists
@ap8730390,
Your logic and code is correct. Small error in the display function. If there are multiple test cases, the output will be printed in a single line, which is incorrect. Just add a println to the display function.
https://ide.codingblocks.com/s/254718 corrected code.