1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-04 23:11:41 +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

@@ -11,8 +11,8 @@
"translatedContent": null,
"isPaidOnly": false,
"difficulty": "Medium",
"likes": 237,
"dislikes": 23,
"likes": 253,
"dislikes": 26,
"isLiked": null,
"similarQuestions": "[]",
"exampleTestcases": "\"LeetcodeHelpsMeLearn\"\n[8,13,15]\n\"icodeinpython\"\n[1,5,7,9]\n\"spacing\"\n[0,1,2,3,4,5,6]",
@@ -149,7 +149,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"20.2K\", \"totalSubmission\": \"36K\", \"totalAcceptedRaw\": 20157, \"totalSubmissionRaw\": 36022, \"acRate\": \"56.0%\"}",
"stats": "{\"totalAccepted\": \"20.8K\", \"totalSubmission\": \"37.1K\", \"totalAcceptedRaw\": 20808, \"totalSubmissionRaw\": 37104, \"acRate\": \"56.1%\"}",
"hints": [
"Create a new string, initially empty, as the modified string. Iterate through the original string and append each character of the original string to the new string. However, each time you reach a character that requires a space before it, append a space before appending the character.",
"Since the array of indices for the space locations is sorted, use a pointer to keep track of the next index to place a space. Only increment the pointer once a space has been appended.",