2개의 linked-list를 하나의 sorting된 linked-list로 합친다.
var mergeTwoLists = function(list1, list2) {
if (!list1) return list2;
if (!list2) return list1;
if (list1.val < list2.val) {
list1.next = mergeTwoLists(list1.next, list2);
console.log('list1', list1 );
return list1;
} else {
list2.next = mergeTwoLists(list1, list2.next);
console.log('list2', list2 );
return list2;
}
};