I have written this code 1 test case is not passing.
please check:
1 test case not passing
Can you pls specify the question correctly… Since you have shared code for merge sorted linked list…
The approach you were trying to use was taking a long time …,. I have edited your code… Try to submit it now…