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

@@ -149,7 +149,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"6.9K\", \"totalSubmission\": \"11.3K\", \"totalAcceptedRaw\": 6859, \"totalSubmissionRaw\": 11279, \"acRate\": \"60.8%\"}",
"stats": "{\"totalAccepted\": \"6.9K\", \"totalSubmission\": \"11.3K\", \"totalAcceptedRaw\": 6888, \"totalSubmissionRaw\": 11320, \"acRate\": \"60.8%\"}",
"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.",