Merge sorted linked list


it is not showing right output the first two numbers are repeating twice

`Hey @shubhangis248

void insertatTail(node*(&head),int d)
{
    if(head==NULL)
    {
        head=new node(d);
        return;//added this
    }
    node* temp=head;
    while(temp->next!=NULL)
    {
        temp=temp->next;
    }
    temp->next=new node(d);
}

If this resolved your query then please mark it as resolved :slight_smile: