You are viewing a single comment's thread. Return to all comments →
When the head==NULL, dont you think we need to assign 'temp->prev = head' before returning the node??
Seems like cookies are disabled on this browser, please enable them to open this website
Inserting a Node Into a Sorted Doubly Linked List
You are viewing a single comment's thread. Return to all comments →
When the head==NULL, dont you think we need to assign 'temp->prev = head' before returning the node??