You are viewing a single comment's thread. Return to all comments →
It's passing in one node at a time.
e.g.:
2 //two test cases
4 //first test calls your function 4 times
2 1 4 3 //final call should return 1 2 3 4
8 //second test calls your function 8 times
1 2 4 3 7 6 9 10 //final call returns 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 →
It's passing in one node at a time.
e.g.:
2 //two test cases
4 //first test calls your function 4 times
2 1 4 3 //final call should return 1 2 3 4
8 //second test calls your function 8 times
1 2 4 3 7 6 9 10 //final call returns 1 2 3 4 6 7 9 10