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-03-29 15:21:05 +08:00
parent b84ae535b7
commit e730aa6794
2244 changed files with 8703 additions and 59499 deletions

View File

@@ -11,7 +11,7 @@
"translatedContent": null,
"isPaidOnly": false,
"difficulty": "Medium",
"likes": 236,
"likes": 237,
"dislikes": 23,
"isLiked": null,
"similarQuestions": "[]",
@@ -149,7 +149,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"20.1K\", \"totalSubmission\": \"35.9K\", \"totalAcceptedRaw\": 20108, \"totalSubmissionRaw\": 35928, \"acRate\": \"56.0%\"}",
"stats": "{\"totalAccepted\": \"20.2K\", \"totalSubmission\": \"36K\", \"totalAcceptedRaw\": 20157, \"totalSubmissionRaw\": 36022, \"acRate\": \"56.0%\"}",
"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.",