Why it is showing Doubt over there?

Why it is showing Doubt over there?

@cbcao263 when you search for mid point after assigning the midpoint->next to node* b you should make midpoint->next =NULL so that when you call mergesort(a) this will go upto only mid not again for the entire list.

How can I do that? Please tell.

when you assign m-next to b then after line 91 of your code write m->next=NULL.

What will be it’s benefit, Why we took m->next=NULL.

when you call mergersort(a) you are supposed to sort upto midpoint only in this function,
for this your function should stop at midpoint and to stop it midpoint->next should be put as NULL

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.