Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.
解法1:Dummy Node O(N + M)
对于head不明确的linkedlist的题目,都考虑建立Dummy Node,然后返回Dummy->next的办法解决。
C++
用C++注意在最后需要delete掉dummy防止memory leak
Java