21. Merge Two Sorted Lists {leetcode}/problems/merge-two-sorted-lists/[LeetCode - Merge Two Sorted Lists^] 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. Example: Input: 1->2->4, 1->3->4 Output: 1->1->2->3->4->4 思路分析 最先想到的是迭代。 但是,也可以用递归解决! 一刷 link:{sourcedir}/_0021_MergeTwoSortedLists.java[role=include] 二刷 link:{sourcedir}/_0021_MergeTwoSortedLists_2.java[role=include] 三刷 link:{sourcedir}/_0021_MergeTwoSortedLists_3.java[role=include] 参考资料 21. 合并两个有序链表 - 官方题解 21. 合并两个有序链表 - 双指针,清晰图解 21. 合并两个有序链表 - 画解算法 21. 合并两个有序链表 - 一看就会,一写就废?详解递归 21. 合并两个有序链表 - 简单迭代,详细图解