mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-21 21:16:45 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>给定一个编码字符串 <code>S</code>。请你找出<em> </em><strong>解码字符串</strong> 并将其写入磁带。解码时,从编码字符串中<strong> 每次读取一个字符 </strong>,并采取以下步骤:</p>\n\n<ul>\n\t<li>如果所读的字符是字母,则将该字母写在磁带上。</li>\n\t<li>如果所读的字符是数字(例如 <code>d</code>),则整个当前磁带总共会被重复写 <code>d-1</code> 次。</li>\n</ul>\n\n<p>现在,对于给定的编码字符串 <code>S</code> 和索引 <code>K</code>,查找并返回解码字符串中的第 <code>K</code> 个字母。</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre><strong>输入:</strong>S = "leet2code3", K = 10\n<strong>输出:</strong>"o"\n<strong>解释:</strong>\n解码后的字符串为 "leetleetcodeleetleetcodeleetleetcode"。\n字符串中的第 10 个字母是 "o"。\n</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre><strong>输入:</strong>S = "ha22", K = 5\n<strong>输出:</strong>"h"\n<strong>解释:</strong>\n解码后的字符串为 "hahahaha"。第 5 个字母是 "h"。\n</pre>\n\n<p><strong>示例 3:</strong></p>\n\n<pre><strong>输入:</strong>S = "a2345678999999999999999", K = 1\n<strong>输出:</strong>"a"\n<strong>解释:</strong>\n解码后的字符串为 "a" 重复 8301530446056247680 次。第 1 个字母是 "a"。\n</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>2 <= S.length <= 100</code></li>\n\t<li><code>S</code> 只包含小写字母与数字 <code>2</code> 到 <code>9</code> 。</li>\n\t<li><code>S</code> 以字母开头。</li>\n\t<li><code>1 <= K <= 10^9</code></li>\n\t<li>题目保证 <code>K</code> 小于或等于解码字符串的长度。</li>\n\t<li>解码后的字符串保证少于 <code>2^63</code> 个字母。</li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Medium",
|
||||
"likes": 164,
|
||||
"likes": 166,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -143,7 +143,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"6.8K\", \"totalSubmission\": \"26.4K\", \"totalAcceptedRaw\": 6824, \"totalSubmissionRaw\": 26353, \"acRate\": \"25.9%\"}",
|
||||
"stats": "{\"totalAccepted\": \"6.9K\", \"totalSubmission\": \"26.7K\", \"totalAcceptedRaw\": 6927, \"totalSubmissionRaw\": 26723, \"acRate\": \"25.9%\"}",
|
||||
"hints": [],
|
||||
"solution": {
|
||||
"id": "76",
|
||||
|
Reference in New Issue
Block a user