Why only one test case passed

https://online.codingblocks.com/app/player/219653/content/229241/4759/code-challenge

hi @sumit242,
when the size of linkedlist is 0 your code will fail as you are taking data input assuming initially

check here https://ide.codingblocks.com/s/660836
changed the input thing merging was fine

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.