1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-10-22 13:36:46 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-05-02 23:44:12 +08:00
parent 7ea03594b3
commit 2a71c78585
4790 changed files with 11696 additions and 10944 deletions

View File

@@ -12,7 +12,7 @@
"translatedContent": "<p>给你一个字符串 <code>time</code> ,格式为 <code> hh:mm</code>(小时:分钟),其中某几位数字被隐藏(用 <code>?</code> 表示)。</p>\n\n<p>有效的时间为 <code>00:00</code> 到 <code>23:59</code> 之间的所有时间,包括 <code>00:00</code> 和 <code>23:59</code> 。</p>\n\n<p>替换 <code>time</code> 中隐藏的数字,返回你可以得到的最晚有效时间。</p>\n\n<p> </p>\n\n<p><strong>示例 1</strong></p>\n\n<pre>\n<strong>输入:</strong>time = \"2?:?0\"\n<strong>输出:</strong>\"23:50\"\n<strong>解释:</strong>以数字 '2' 开头的最晚一小时是 23 ,以 '0' 结尾的最晚一分钟是 50 。\n</pre>\n\n<p><strong>示例 2</strong></p>\n\n<pre>\n<strong>输入:</strong>time = \"0?:3?\"\n<strong>输出:</strong>\"09:39\"\n</pre>\n\n<p><strong>示例 3</strong></p>\n\n<pre>\n<strong>输入:</strong>time = \"1?:22\"\n<strong>输出:</strong>\"19:22\"\n</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>time</code> 的格式为 <code>hh:mm</code></li>\n\t<li>题目数据保证你可以由输入的字符串生成有效的时间</li>\n</ul>\n",
"isPaidOnly": false,
"difficulty": "Easy",
"likes": 61,
"likes": 62,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
@@ -137,7 +137,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"30.1K\", \"totalSubmission\": \"67.2K\", \"totalAcceptedRaw\": 30096, \"totalSubmissionRaw\": 67188, \"acRate\": \"44.8%\"}",
"stats": "{\"totalAccepted\": \"30.3K\", \"totalSubmission\": \"67.8K\", \"totalAcceptedRaw\": 30328, \"totalSubmissionRaw\": 67767, \"acRate\": \"44.8%\"}",
"hints": [
"Trying out all possible solutions from biggest to smallest would fit in the time limit.",
"To check if the solution is okay, you need to find out if it's valid and matches every character"