mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-26 07:18:56 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>魔术索引。 在数组<code>A[0...n-1]</code>中,有所谓的魔术索引,满足条件<code>A[i] = i</code>。给定一个有序整数数组,编写一种方法找出魔术索引,若有的话,在数组A中找出一个魔术索引,如果没有,则返回-1。若有多个魔术索引,返回索引值最小的一个。</p>\n\n<p><strong>示例1:</strong></p>\n\n<pre><strong> 输入</strong>:nums = [0, 2, 3, 4, 5]\n<strong> 输出</strong>:0\n<strong> 说明</strong>: 0下标的元素为0\n</pre>\n\n<p><strong>示例2:</strong></p>\n\n<pre><strong> 输入</strong>:nums = [1, 1, 1]\n<strong> 输出</strong>:1\n</pre>\n\n<p><strong>说明:</strong></p>\n\n<ol>\n\t<li>nums长度在[1, 1000000]之间</li>\n\t<li>此题为原书中的 Follow-up,即数组中可能包含重复元素的版本</li>\n</ol>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Easy",
|
||||
"likes": 107,
|
||||
"likes": 108,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -143,7 +143,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"55.5K\", \"totalSubmission\": \"82.2K\", \"totalAcceptedRaw\": 55546, \"totalSubmissionRaw\": 82250, \"acRate\": \"67.5%\"}",
|
||||
"stats": "{\"totalAccepted\": \"56.2K\", \"totalSubmission\": \"83.3K\", \"totalAcceptedRaw\": 56212, \"totalSubmissionRaw\": 83262, \"acRate\": \"67.5%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
|
||||
Reference in New Issue
Block a user