You are viewing a single comment's thread. Return to all comments →
You are right. We can just have:
if(headA == NULL){ return headB; } else if(headB == NULL){ return headA; }
Merge two sorted linked lists
You are viewing a single comment's thread. Return to all comments →
You are right. We can just have: