1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-10-22 13:36:46 +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

@@ -12,7 +12,7 @@
"translatedContent": "<p>在一个由小写字母构成的字符串 <code>s</code> 中,包含由一些连续的相同字符所构成的分组。</p>\n\n<p>例如,在字符串 <code>s = \"abbxxxxzyy\"</code> 中,就含有 <code>\"a\"</code>, <code>\"bb\"</code>, <code>\"xxxx\"</code>, <code>\"z\"</code> 和 <code>\"yy\"</code> 这样的一些分组。</p>\n\n<p>分组可以用区间 <code>[start, end]</code> 表示,其中 <code>start</code> 和 <code>end</code> 分别表示该分组的起始和终止位置的下标。上例中的 <code>\"xxxx\"</code> 分组用区间表示为 <code>[3,6]</code> 。</p>\n\n<p>我们称所有包含大于或等于三个连续字符的分组为 <strong>较大分组</strong> 。</p>\n\n<p>找到每一个 <strong>较大分组</strong> 的区间,<strong>按起始位置下标递增顺序排序后</strong>,返回结果。</p>\n\n<p> </p>\n\n<p><strong>示例 1</strong></p>\n\n<pre>\n<strong>输入:</strong>s = \"abbxxxxzzy\"\n<strong>输出:</strong>[[3,6]]\n<strong>解释</strong><strong></strong><code>\"xxxx\" 是一个起始于 3 且终止于 6 的较大分组</code>。\n</pre>\n\n<p><strong>示例 2</strong></p>\n\n<pre>\n<strong>输入:</strong>s = \"abc\"\n<strong>输出:</strong>[]\n<strong>解释:</strong>\"a\",\"b\" 和 \"c\" 均不是符合要求的较大分组。\n</pre>\n\n<p><strong>示例 3</strong></p>\n\n<pre>\n<strong>输入:</strong>s = \"abcdddeeeeaabbbcd\"\n<strong>输出:</strong>[[3,5],[6,9],[12,14]]\n<strong>解释:</strong>较大分组为 \"ddd\", \"eeee\" 和 \"bbb\"</pre>\n\n<p><strong>示例 4</strong></p>\n\n<pre>\n<strong>输入:</strong>s = \"aba\"\n<strong>输出:</strong>[]\n</pre>\n \n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>1 <= s.length <= 1000</code></li>\n\t<li><code>s</code> 仅含小写英文字母</li>\n</ul>\n",
"isPaidOnly": false,
"difficulty": "Easy",
"likes": 129,
"likes": 130,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
@@ -137,7 +137,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"54.1K\", \"totalSubmission\": \"99.6K\", \"totalAcceptedRaw\": 54065, \"totalSubmissionRaw\": 99567, \"acRate\": \"54.3%\"}",
"stats": "{\"totalAccepted\": \"54.5K\", \"totalSubmission\": \"100.3K\", \"totalAcceptedRaw\": 54468, \"totalSubmissionRaw\": 100318, \"acRate\": \"54.3%\"}",
"hints": [],
"solution": null,
"status": null,