1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-11 02:58:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/problem (Chinese)/合并两个排序的链表 [he-bing-liang-ge-pai-xu-de-lian-biao-lcof].html
2022-03-29 12:43:11 +08:00

13 lines
544 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<p>输入两个递增排序的链表,合并这两个链表并使新链表中的节点仍然是递增排序的。</p>
<p><strong>示例1</strong></p>
<pre><strong>输入:</strong>1-&gt;2-&gt;4, 1-&gt;3-&gt;4
<strong>输出:</strong>1-&gt;1-&gt;2-&gt;3-&gt;4-&gt;4</pre>
<p><strong>限制:</strong></p>
<p><code>0 &lt;= 链表长度 &lt;= 1000</code></p>
<p>注意:本题与主站 21 题相同:<a href="https://leetcode-cn.com/problems/merge-two-sorted-lists/">https://leetcode-cn.com/problems/merge-two-sorted-lists/</a></p>