1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-02 14:12:17 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-03-29 16:56:27 +08:00
parent e730aa6794
commit ad15da05aa
2517 changed files with 7358 additions and 7332 deletions

View File

@@ -12,7 +12,7 @@
"translatedContent": "<p>编写一个函数,其作用是将输入的字符串反转过来。输入字符串以字符数组 <code>s</code> 的形式给出。</p>\n\n<p>不要给另外的数组分配额外的空间,你必须<strong><a href=\"https://baike.baidu.com/item/原地算法\" target=\"_blank\">原地</a>修改输入数组</strong>、使用 O(1) 的额外空间解决这一问题。</p>\n\n<p>&nbsp;</p>\n\n<p><strong>示例 1</strong></p>\n\n<pre>\n<strong>输入:</strong>s = [\"h\",\"e\",\"l\",\"l\",\"o\"]\n<strong>输出:</strong>[\"o\",\"l\",\"l\",\"e\",\"h\"]\n</pre>\n\n<p><strong>示例 2</strong></p>\n\n<pre>\n<strong>输入:</strong>s = [\"H\",\"a\",\"n\",\"n\",\"a\",\"h\"]\n<strong>输出:</strong>[\"h\",\"a\",\"n\",\"n\",\"a\",\"H\"]</pre>\n\n<p>&nbsp;</p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>1 &lt;= s.length &lt;= 10<sup>5</sup></code></li>\n\t<li><code>s[i]</code> 都是 <a href=\"https://baike.baidu.com/item/ASCII\" target=\"_blank\">ASCII</a> 码表中的可打印字符</li>\n</ul>\n",
"isPaidOnly": false,
"difficulty": "Easy",
"likes": 551,
"likes": 552,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[{\"title\": \"Reverse Vowels of a String\", \"titleSlug\": \"reverse-vowels-of-a-string\", \"difficulty\": \"Easy\", \"translatedTitle\": \"\\u53cd\\u8f6c\\u5b57\\u7b26\\u4e32\\u4e2d\\u7684\\u5143\\u97f3\\u5b57\\u6bcd\"}, {\"title\": \"Reverse String II\", \"titleSlug\": \"reverse-string-ii\", \"difficulty\": \"Easy\", \"translatedTitle\": \"\\u53cd\\u8f6c\\u5b57\\u7b26\\u4e32 II\"}]",
@@ -137,7 +137,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"492.6K\", \"totalSubmission\": \"629.9K\", \"totalAcceptedRaw\": 492617, \"totalSubmissionRaw\": 629851, \"acRate\": \"78.2%\"}",
"stats": "{\"totalAccepted\": \"494.4K\", \"totalSubmission\": \"632K\", \"totalAcceptedRaw\": 494414, \"totalSubmissionRaw\": 631956, \"acRate\": \"78.2%\"}",
"hints": [
"The entire logic for reversing a string is based on using the opposite directional two-pointer approach!"
],