Merge sorted linked list


i am getting tle error

bro are u even taking the input right

the input format is
t no of test cases
n1
then n1 elements of LL 1
n2
n2 eleements of LL2

then merge them

Can you modify my code . I want to do this way


still getting tle after using correct input.so modify my code

i suppose this should work
i am not great at operator overloading so did it simply without that

not passing any test cases

therequired o/p has no arrow
so in the print functino remove the -> symbol
desired o/p i s
1 2 3 4 5 6 7