1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-05 23:41:41 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2023-12-09 19:57:46 +08:00
parent 9bc4722a45
commit 3770b44d1e
4792 changed files with 10889 additions and 10886 deletions

View File

@@ -155,7 +155,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"36.2K\", \"totalSubmission\": \"63.7K\", \"totalAcceptedRaw\": 36154, \"totalSubmissionRaw\": 63661, \"acRate\": \"56.8%\"}",
"stats": "{\"totalAccepted\": \"36.2K\", \"totalSubmission\": \"63.7K\", \"totalAcceptedRaw\": 36172, \"totalSubmissionRaw\": 63692, \"acRate\": \"56.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.",