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