1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-10-24 22:38:57 +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>num</code>(可能包含重复数字),请你将它们分割成一个或多个长度至少为 3 的子序列,其中每个子序列都由连续整数组成。</p>\n\n<p>如果可以完成上述分割,则返回 <code>true</code> ;否则,返回 <code>false</code> 。</p>\n\n<p> </p>\n\n<p><strong>示例 1</strong></p>\n\n<pre>\n<strong>输入:</strong> [1,2,3,3,4,5]\n<strong>输出:</strong> True\n<strong>解释:</strong>\n你可以分割出这样两个连续子序列 : \n1, 2, 3\n3, 4, 5\n</pre>\n\n<p><strong>示例 2</strong></p>\n\n<pre>\n<strong>输入:</strong> [1,2,3,3,4,4,5,5]\n<strong>输出:</strong> True\n<strong>解释:</strong>\n你可以分割出这样两个连续子序列 : \n1, 2, 3, 4, 5\n3, 4, 5\n</pre>\n\n<p><strong>示例 3</strong></p>\n\n<pre>\n<strong>输入:</strong> [1,2,3,4,4,5]\n<strong>输出:</strong> False\n</pre>\n\n<p> </p>\n\n<p><b>提示:</b></p>\n\n<ul>\n\t<li><code>1 <= nums.length <= 10000</code></li>\n</ul>\n",
"isPaidOnly": false,
"difficulty": "Medium",
"likes": 365,
"likes": 368,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[{\"title\": \"Top K Frequent Elements\", \"titleSlug\": \"top-k-frequent-elements\", \"difficulty\": \"Medium\", \"translatedTitle\": \"\\u524d K \\u4e2a\\u9ad8\\u9891\\u5143\\u7d20\"}]",
@@ -155,7 +155,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"30.5K\", \"totalSubmission\": \"56.2K\", \"totalAcceptedRaw\": 30484, \"totalSubmissionRaw\": 56184, \"acRate\": \"54.3%\"}",
"stats": "{\"totalAccepted\": \"30.9K\", \"totalSubmission\": \"57K\", \"totalAcceptedRaw\": 30938, \"totalSubmissionRaw\": 57008, \"acRate\": \"54.3%\"}",
"hints": [],
"solution": null,
"status": null,