TIme Complexity is O(n). Still giving TLE

Please do have a look.

hi @simmy_gupta0404 initialise your linked lists with NULL for each test case

Sorry i didn’t get what you are asking me to do.

@simmy_gupta0404 please share your code by saving it on cb ide i’ll make changes in it

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.