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