You are viewing a single comment's thread. Return to all comments →
while (headA->next != NULL && headB->data > headA->next->data)
while(head1->next->data < head2->data && head1->next != NULL)
if i change 1 while loop condition to 2 while loop condition then it is showing runtime error why both condition are not same?
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Merge two sorted linked lists
You are viewing a single comment's thread. Return to all comments →
while (headA->next != NULL && headB->data > headA->next->data)
while(head1->next->data < head2->data && head1->next != NULL)
if i change 1 while loop condition to 2 while loop condition then it is showing runtime error why both condition are not same?