You are viewing a single comment's thread. Return to all comments →
I had the same idea. Separating the cases for inserting in the middle, appending and prepending. But I'm trying to find a solution thats all-in-one.
Inserting a Node Into a Sorted Doubly Linked List
You are viewing a single comment's thread. Return to all comments →
I had the same idea. Separating the cases for inserting in the middle, appending and prepending. But I'm trying to find a solution thats all-in-one.