You are viewing a single comment's thread. Return to all comments →
Node next = current; newNode.prev = prev; newNode.next = next; prev.next = newNode;
make this changes it will work...!
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 →
make this changes it will work...!