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)/训练计划 VI [shu-zu-zhong-shu-zi-chu-xian-de-ci-shu-ii-lcof].html
2023-12-09 18:53:53 +08:00

27 lines
689 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>actions</code>,其中 <code>actions[i]</code> 表示做出该动作的人员编号。请返回教练的编号。</p>
<p>&nbsp;</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>&nbsp;</p>
<p><strong>提示:</strong></p>
<ul>
<li><code>1 &lt;= actions.length &lt;= 10000</code></li>
<li><code>1 &lt;= actions[i] &lt; 2^31</code></li>
</ul>