You are viewing a single comment's thread. Return to all comments →
I believe you can set nextB = headA->next at once and skip the extra step of changing the pointer with headB->next.
Seems like cookies are disabled on this browser, please enable them to open this website
Merge two sorted linked lists
You are viewing a single comment's thread. Return to all comments →
I believe you can set nextB = headA->next at once and skip the extra step of changing the pointer with headB->next.