mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 07:51:41 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>给定一个放有字母和数字的数组,找到最长的子数组,且包含的字母和数字的个数相同。</p>\n\n<p>返回该子数组,若存在多个最长子数组,返回左端点下标值最小的子数组。若不存在这样的数组,返回一个空数组。</p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre>\n<strong>输入: </strong>[\"A\",\"1\",\"B\",\"C\",\"D\",\"2\",\"3\",\"4\",\"E\",\"5\",\"F\",\"G\",\"6\",\"7\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\"]\n\n<strong>输出: </strong>[\"A\",\"1\",\"B\",\"C\",\"D\",\"2\",\"3\",\"4\",\"E\",\"5\",\"F\",\"G\",\"6\",\"7\"]\n</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre>\n<strong>输入: </strong>[\"A\",\"A\"]\n\n<strong>输出: </strong>[]\n</pre>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>array.length <= 100000</code></li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Medium",
|
||||
"likes": 183,
|
||||
"likes": 184,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -155,7 +155,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"31.5K\", \"totalSubmission\": \"66.3K\", \"totalAcceptedRaw\": 31522, \"totalSubmissionRaw\": 66335, \"acRate\": \"47.5%\"}",
|
||||
"stats": "{\"totalAccepted\": \"31.5K\", \"totalSubmission\": \"66.3K\", \"totalAcceptedRaw\": 31526, \"totalSubmissionRaw\": 66341, \"acRate\": \"47.5%\"}",
|
||||
"hints": [
|
||||
"是哪个字母或数字并不重要。你可以把该问题简化为只包含 A 和 B 的数组。然后寻找具有相同数量的 A 和 B 的最长子数组。",
|
||||
"从蛮力解法开始。",
|
||||
|
Reference in New Issue
Block a user