Merge Sorted Link List

RunTime Error - https://ideone.com/IATX6F , Runtime error is faced while submission

Hello @ayushjain.aj300,

You are missing an important part of the question:

0<= N1, N2 <= 10^6

You can have the value for N1 and N2 as 0 i.e. no list.
Your code is causing runtime error for the testcases like:
4
1 2 3 4
0

Hope, this would help.
Give a like, if you are satisfied.

Okay I get it, I can’t see any option to like even when I resolve the doubt. How to do that

There must be a heart :heart_decoration: beneath my replies.
You can click it, if you like reply.
:sweat_smile:

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.