1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-10-12 17:05:15 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
Files
leetcode-problemset/leetcode-cn/problem (Chinese)/数对和 [pairs-with-sum-lcci].html
2025-09-29 14:43:44 +08:00

21 lines
586 B
HTML
Raw Permalink 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>nums = [5,6,5], target = 11
<strong>输出:</strong>[[5,6]]</pre>
<p><strong>示例 2</strong></p>
<pre>
<strong>输入:</strong>nums = [5,6,5,6], target = 11
<strong>输出:</strong>[[5,6],[5,6]]</pre>
<p><strong>提示:</strong></p>
<ul>
<li><code>nums.length &lt;= 100000</code></li>
<li><code>-10<sup>5</sup> &lt;= nums[i], target &lt;= 10<sup>5</sup></code></li>
</ul>