You are viewing a single comment's thread. Return to all comments →
Here is how the nodes are insrted. The first line is the input linked list and second line is the sorted one on each call.
0 0 2 ============= 0 2 0 1 2 ============= 0 1 2 0 1 2 4 ============= 0 1 2 4 0 1 2 3 4 ============= 0 0 1 ============= 0 1 0 1 4 ============= 0 1 4 0 1 2 4 ============= 0 1 2 4 0 1 2 3 4 ============= 0 1 2 3 4 0 1 2 3 4 7 ============= 0 1 2 3 4 7 0 1 2 3 4 6 7 ============= 0 1 2 3 4 6 7 0 1 2 3 4 6 7 9 ============= 0 1 2 3 4 6 7 9 0 1 2 3 4 6 7 9 10
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 →
Here is how the nodes are insrted. The first line is the input linked list and second line is the sorted one on each call.