1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-27 18:50:26 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/problem (Chinese)/训练计划 II [lian-biao-zhong-dao-shu-di-kge-jie-dian-lcof].html

22 lines
560 B
HTML
Raw Normal View History

2023-12-09 18:53:53 +08:00
<p>给定一个头节点为 <code>head</code> 的链表用于记录一系列核心肌群训练项目编号,请查找并返回倒数第 <code>cnt</code> 个训练项目编号。</p>
<p>&nbsp;</p>
<p><strong>示例 1</strong></p>
<pre>
<strong>输入:</strong>head = [2,4,7,8], cnt = 1
<strong>输出:</strong>8</pre>
<p>&nbsp;</p>
<p><strong>提示:</strong></p>
<ul>
<li><code>1 &lt;= head.length &lt;= 100</code></li>
<li><code>0 &lt;= head[i] &lt;= 100</code></li>
<li><code>1 &lt;= cnt &lt;= head.length</code></li>
</ul>
<p>&nbsp;</p>