You are viewing a single comment's thread. Return to all comments →
I think you're not addressing the case where:
headA->data == headB->data
I would make this change in the forth if statement:
if(headA->data <= headB->data)
Merge two sorted linked lists
You are viewing a single comment's thread. Return to all comments →
I think you're not addressing the case where:
headA->data == headB->data
I would make this change in the forth if statement:
if(headA->data <= headB->data)