1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-04 15:01:40 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-05-02 23:44:12 +08:00
parent 7ea03594b3
commit 2a71c78585
4790 changed files with 11696 additions and 10944 deletions

View File

@@ -11,8 +11,8 @@
"translatedContent": null,
"isPaidOnly": false,
"difficulty": "Medium",
"likes": 369,
"dislikes": 37,
"likes": 380,
"dislikes": 38,
"isLiked": null,
"similarQuestions": "[{\"title\": \"Consecutive Characters\", \"titleSlug\": \"consecutive-characters\", \"difficulty\": \"Easy\", \"translatedTitle\": null}, {\"title\": \"Number of Substrings With Only 1s\", \"titleSlug\": \"number-of-substrings-with-only-1s\", \"difficulty\": \"Medium\", \"translatedTitle\": null}, {\"title\": \"Sum of Subarray Ranges\", \"titleSlug\": \"sum-of-subarray-ranges\", \"difficulty\": \"Medium\", \"translatedTitle\": null}]",
"exampleTestcases": "\"abbcccaa\"\n\"xy\"\n\"zzzzz\"",
@@ -131,7 +131,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"17.7K\", \"totalSubmission\": \"38.3K\", \"totalAcceptedRaw\": 17723, \"totalSubmissionRaw\": 38315, \"acRate\": \"46.3%\"}",
"stats": "{\"totalAccepted\": \"18.1K\", \"totalSubmission\": \"39K\", \"totalAcceptedRaw\": 18105, \"totalSubmissionRaw\": 38994, \"acRate\": \"46.4%\"}",
"hints": [
"A string of only 'a's of length k contains k choose 2 homogenous substrings.",
"Split the string into substrings where each substring contains only one letter, and apply the formula on each substring's length."