We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I almost always use just 1 pointer when working with linked lists as it makes for cleaner code. That's how I originally coded this problem. Using 2 pointers was my 2nd approach and it turned out nice. Nice job.
Inserting a Node Into a Sorted Doubly Linked List
You are viewing a single comment's thread. Return to all comments →
I almost always use just 1 pointer when working with linked lists as it makes for cleaner code. That's how I originally coded this problem. Using 2 pointers was my 2nd approach and it turned out nice. Nice job.
HackerRank solutions.