Merge Two Sorted Lists 题解
Last updated
Was this helpful?
Last updated
Was this helpful?
题目来源:
> 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.
解题思路:
用一个多余的节点在头部,使得代码简洁,不然得去内部判断到底哪个节点当作新list的head。