mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-01-11 02:58:13 +08:00
27 lines
689 B
HTML
27 lines
689 B
HTML
|
<p>教学过程中,教练示范一次,学员跟做三次。该过程被混乱剪辑后,记录于数组 <code>actions</code>,其中 <code>actions[i]</code> 表示做出该动作的人员编号。请返回教练的编号。</p>
|
|||
|
|
|||
|
<p> </p>
|
|||
|
|
|||
|
<p><strong>示例 1:</strong></p>
|
|||
|
|
|||
|
<pre>
|
|||
|
<strong>输入:</strong>actions = [5, 7, 5, 5]
|
|||
|
<strong>输出:</strong>7
|
|||
|
</pre>
|
|||
|
|
|||
|
<p><strong>示例 2:</strong></p>
|
|||
|
|
|||
|
<pre>
|
|||
|
<strong>输入:</strong>actions = [12, 1, 6, 12, 6, 12, 6]
|
|||
|
<strong>输出:</strong>1
|
|||
|
</pre>
|
|||
|
|
|||
|
<p> </p>
|
|||
|
|
|||
|
<p><strong>提示:</strong></p>
|
|||
|
|
|||
|
<ul>
|
|||
|
<li><code>1 <= actions.length <= 10000</code></li>
|
|||
|
<li><code>1 <= actions[i] < 2^31</code></li>
|
|||
|
</ul>
|