wrong output
Merge two sorted linked list
@ayu2321 hey your merge logic is absolutely correct,there is problem in building of linked list check this out I have made some changes:
output is showing TLE
@ayu2321 hey ,actually yes you are right,earlier this got acceoted through recursion but they have changed test cases and you have to solve it iteratively and then it can be solved ,try iteratively ,there is more question on hackerblocks that is merge sort recursion,their you can submit recursive solution.