leetcode [#21] | GCidea's blog
目录

题目
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 | /** |
注意事项
- 从结果来看,题目默认的是升序排序。
- 两个有序链表合并,可以看到归并排序算法的影子,按照归并排序的算法进行处理即可。