mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-03 06:22:54 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>在桌子上有 <code>N</code> 张卡片,每张卡片的正面和背面都写着一个正数(正面与背面上的数有可能不一样)。</p>\n\n<p>我们可以先翻转任意张卡片,然后选择其中一张卡片。</p>\n\n<p>如果选中的那张卡片背面的数字 <code>X</code> 与任意一张卡片的正面的数字都不同,那么这个数字是我们想要的数字。</p>\n\n<p>哪个数是这些想要的数字中最小的数(找到这些数中的最小值)呢?如果没有一个数字符合要求的,输出 0。</p>\n\n<p>其中, <code>fronts[i]</code> 和 <code>backs[i]</code> 分别代表第 <code>i</code> 张卡片的正面和背面的数字。</p>\n\n<p>如果我们通过翻转卡片来交换正面与背面上的数,那么当初在正面的数就变成背面的数,背面的数就变成正面的数。</p>\n\n<p><strong>示例:</strong></p>\n\n<pre>\n<strong>输入:</strong>fronts = [1,2,4,4,7], backs = [1,3,4,1,3]\n<strong>输出:</strong><code>2</code>\n<strong>解释:</strong>假设我们翻转第二张卡片,那么在正面的数变成了 <code>[1,3,4,4,7]</code> , 背面的数变成了 <code>[1,2,4,1,3]。</code>\n接着我们选择第二张卡片,因为现在该卡片的背面的数是 2,2 与任意卡片上正面的数都不同,所以 2 就是我们想要的数字。</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ol>\n\t<li><code>1 <= fronts.length == backs.length <= 1000</code></li>\n\t<li><code>1 <= fronts[i] <= 2000</code></li>\n\t<li><code>1 <= backs[i] <= 2000</code></li>\n</ol>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Medium",
|
||||
"likes": 18,
|
||||
"likes": 20,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -143,7 +143,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"3.4K\", \"totalSubmission\": \"6.7K\", \"totalAcceptedRaw\": 3426, \"totalSubmissionRaw\": 6723, \"acRate\": \"51.0%\"}",
|
||||
"stats": "{\"totalAccepted\": \"3.6K\", \"totalSubmission\": \"7K\", \"totalAcceptedRaw\": 3576, \"totalSubmissionRaw\": 7045, \"acRate\": \"50.8%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
|
Reference in New Issue
Block a user