You are viewing a single comment's thread. Return to all comments →
@calvin_cheng_cc I think we don't need to create a new node "rest". Inspite we can use head.next like this to move forward in linked list
head.next = SortedInsert(head.next, data);
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 →
@calvin_cheng_cc I think we don't need to create a new node "rest". Inspite we can use head.next like this to move forward in linked list