mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-02 14:12:17 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>输入一个英文句子,翻转句子中单词的顺序,但单词内字符的顺序不变。为简单起见,标点符号和普通字母一样处理。例如输入字符串"I am a student. ",则输出"student. a am I"。</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre><strong>输入:</strong> "<code>the sky is blue</code>"\n<strong>输出: </strong>"<code>blue is sky the</code>"\n</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre><strong>输入:</strong> " hello world! "\n<strong>输出: </strong>"world! hello"\n<strong>解释: </strong>输入字符串可以在前面或者后面包含多余的空格,但是反转后的字符不能包括。\n</pre>\n\n<p><strong>示例 3:</strong></p>\n\n<pre><strong>输入:</strong> "a good example"\n<strong>输出: </strong>"example good a"\n<strong>解释: </strong>如果两个单词间有多余的空格,将反转后单词间的空格减少到只含一个。\n</pre>\n\n<p> </p>\n\n<p><strong>说明:</strong></p>\n\n<ul>\n\t<li>无空格字符构成一个单词。</li>\n\t<li>输入字符串可以在前面或者后面包含多余的空格,但是反转后的字符不能包括。</li>\n\t<li>如果两个单词间有多余的空格,将反转后单词间的空格减少到只含一个。</li>\n</ul>\n\n<p><strong>注意:</strong>本题与主站 151 题相同:<a href=\"https://leetcode-cn.com/problems/reverse-words-in-a-string/\">https://leetcode-cn.com/problems/reverse-words-in-a-string/</a></p>\n\n<p><strong>注意:</strong>此题对比原题有改动</p>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Easy",
|
||||
"likes": 189,
|
||||
"likes": 190,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -143,7 +143,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"174.7K\", \"totalSubmission\": \"393.3K\", \"totalAcceptedRaw\": 174722, \"totalSubmissionRaw\": 393293, \"acRate\": \"44.4%\"}",
|
||||
"stats": "{\"totalAccepted\": \"175.4K\", \"totalSubmission\": \"394.7K\", \"totalAcceptedRaw\": 175379, \"totalSubmissionRaw\": 394711, \"acRate\": \"44.4%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
|
Reference in New Issue
Block a user