Can anyone explain how the following codes work? Why they can just sort the two sublist? Really confused.
// step 2. sort each half
ListNode l1 = sortList(head);
ListNode l2 = sortList(slow);
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.