This is just the logic part
Please identify the mistake in class solution (6th line )
hello @vanshikasharma1645
if(l1!=null < l2!=null){
dummy->next=l1;
l1=l1->next;
}
here u need to compare data .
i.e
if(l1->data < l2->data){
something...
}
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.