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)/数组中数字出现的次数 II [shu-zu-zhong-shu-zi-chu-xian-de-ci-shu-ii-lcof].html

26 lines
602 B
HTML
Raw Normal View History

2022-03-27 20:38:29 +08:00
<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>