1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-10-26 07:18:56 +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>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,