mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-02 14:12:17 +08:00
update
This commit is contained in:
@@ -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.",
|
||||
|
Reference in New Issue
Block a user