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)/最小时间差 [569nqc].html

31 lines
907 B
HTML
Raw Normal View History

2023-12-09 18:42:21 +08:00
<p>给定一个 24 小时制(小时:分钟 <strong>"HH:MM"</strong>)的时间列表,找出列表中任意两个时间的最小时间差并以分钟数表示。</p>
2022-03-27 20:38:29 +08:00
<p>&nbsp;</p>
<p><strong>示例 1</strong></p>
<pre>
2023-12-09 18:42:21 +08:00
<strong>输入:</strong>timePoints = ["23:59","00:00"]
2022-03-27 20:38:29 +08:00
<strong>输出:</strong>1
</pre>
<p><strong>示例 2</strong></p>
<pre>
2023-12-09 18:42:21 +08:00
<strong>输入:</strong>timePoints = ["00:00","23:59","00:00"]
2022-03-27 20:38:29 +08:00
<strong>输出:</strong>0
</pre>
<p>&nbsp;</p>
<p><strong>提示:</strong></p>
<ul>
2023-12-09 18:42:21 +08:00
<li><code>2 &lt;= timePoints.length&nbsp;&lt;= 2 * 10<sup>4</sup></code></li>
<li><code>timePoints[i]</code> 格式为 <strong>"HH:MM"</strong></li>
2022-03-27 20:38:29 +08:00
</ul>
<p>&nbsp;</p>
<p><meta charset="UTF-8" />注意:本题与主站 539&nbsp;题相同:&nbsp;<a href="https://leetcode-cn.com/problems/minimum-time-difference/">https://leetcode-cn.com/problems/minimum-time-difference/</a></p>