mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-07 00:11:41 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>有一个由小写字母组成的字符串 <code>s</code>,和一个长度相同的整数数组 <code>shifts</code>。</p>\n\n<p>我们将字母表中的下一个字母称为原字母的 <em>移位</em> <code>shift()</code> (由于字母表是环绕的, <code>'z'</code> 将会变成 <code>'a'</code>)。</p>\n\n<ul>\n\t<li>例如,<code>shift('a') = 'b'<font color=\"#333333\"><font face=\"Helvetica Neue, Helvetica, Arial, sans-serif\"><span style=\"font-size:14px\"><span style=\"background-color:#ffffff\">, </span></span></font></font></code><code>shift('t') = 'u'</code>, 以及 <code>shift('z') = 'a'</code>。</li>\n</ul>\n\n<p>对于每个 <code>shifts[i] = x</code> , 我们会将 <code>s</code> 中的前 <code>i + 1</code> 个字母移位 <code>x</code> 次。</p>\n\n<p>返回 <em>将所有这些移位都应用到 <code>s</code> 后最终得到的字符串</em> 。</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre>\n<strong>输入:</strong>s = \"abc\", shifts = [3,5,9]\n<strong>输出:</strong>\"rpl\"\n<strong>解释: </strong>\n我们以 \"abc\" 开始。\n将 S 中的第 1 个字母移位 3 次后,我们得到 \"dbc\"。\n再将 S 中的前 2 个字母移位 5 次后,我们得到 \"igc\"。\n最后将 S 中的这 3 个字母移位 9 次后,我们得到答案 \"rpl\"。\n</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre>\n<strong>输入:</strong> s = \"aaa\", shifts = [1,2,3]\n<strong>输出:</strong> \"gfd\"\n</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>1 <= s.length <= 10<sup>5</sup></code></li>\n\t<li><code>s</code> 由小写英文字母组成</li>\n\t<li><code>shifts.length == s.length</code></li>\n\t<li><code>0 <= shifts[i] <= 10<sup>9</sup></code></li>\n</ul>\n<span style=\"display:block\"><span style=\"height:0px\"><span style=\"position:absolute\"></span></span></span>",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Medium",
|
||||
"likes": 60,
|
||||
"likes": 61,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -143,7 +143,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"10.7K\", \"totalSubmission\": \"23.7K\", \"totalAcceptedRaw\": 10706, \"totalSubmissionRaw\": 23692, \"acRate\": \"45.2%\"}",
|
||||
"stats": "{\"totalAccepted\": \"11K\", \"totalSubmission\": \"24.2K\", \"totalAcceptedRaw\": 10999, \"totalSubmissionRaw\": 24236, \"acRate\": \"45.4%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
|
Reference in New Issue
Block a user