You are viewing a single comment's thread. Return to all comments →
You have to set both back and next pointers for your nodes. And you have not used current node, use that and set both pointers properly.
current
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 →
You have to set both back and next pointers for your nodes. And you have not used
current
node, use that and set both pointers properly.