1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-10 18:48:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/problem (Chinese)/数组中数字出现的次数 II [shu-zu-zhong-shu-zi-chu-xian-de-ci-shu-ii-lcof].html
2022-03-29 12:43:11 +08:00

26 lines
602 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>在一个数组 <code>nums</code> 中除一个数字只出现一次之外,其他数字都出现了三次。请找出那个只出现一次的数字。</p>
<p>&nbsp;</p>
<p><strong>示例 1</strong></p>
<pre><strong>输入:</strong>nums = [3,4,3,3]
<strong>输出:</strong>4
</pre>
<p><strong>示例 2</strong></p>
<pre><strong>输入:</strong>nums = [9,1,7,9,7,9,7]
<strong>输出:</strong>1</pre>
<p>&nbsp;</p>
<p><strong>限制:</strong></p>
<ul>
<li><code>1 &lt;= nums.length &lt;= 10000</code></li>
<li><code>1 &lt;= nums[i] &lt; 2^31</code></li>
</ul>
<p>&nbsp;</p>