You are viewing a single comment's thread. Return to all comments →
In your github you have this code-
SinglyLinkedListNode result = new SinglyLinkedListNode(0); // dummy/placeholder ListNode SinglyLinkedListNode n = result;
Why do we write 0 while creating the result object?
Seems like cookies are disabled on this browser, please enable them to open this website
Merge two sorted linked lists
You are viewing a single comment's thread. Return to all comments →
In your github you have this code-
SinglyLinkedListNode result = new SinglyLinkedListNode(0); // dummy/placeholder ListNode SinglyLinkedListNode n = result;