Merging 2 sorted LL ? showing TLE and last test case as wrong
initialise head to null inside the loop so that it it re created for each test case
for(int i=0;i<t;i++)
{
node* head1=NULL;
node* head2=NULL;
node* head=NULL;
i have already done it ?
in the code u provided, it wasn’t done, in the code i did, i changed that and submitted it, it gets submitted