mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-24 22:38:57 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>给定两个整数数组,请交换一对数值(每个数组中取一个数值),使得两个数组所有元素的和相等。</p>\n\n<p>返回一个数组,第一个元素是第一个数组中要交换的元素,第二个元素是第二个数组中要交换的元素。若有多个答案,返回任意一个均可。若无满足条件的数值,返回空数组。</p>\n\n<p><strong>示例:</strong></p>\n\n<pre><strong>输入:</strong> array1 = [4, 1, 2, 1, 1, 2], array2 = [3, 6, 3, 3]\n<strong>输出:</strong> [1, 3]\n</pre>\n\n<p><strong>示例:</strong></p>\n\n<pre><strong>输入:</strong> array1 = <code>[1, 2, 3], array2 = [4, 5, 6]</code>\n<strong>输出: </strong>[]</pre>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>1 <= array1.length, array2.length <= 100000</code></li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Medium",
|
||||
"likes": 32,
|
||||
"likes": 34,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -155,7 +155,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"11.4K\", \"totalSubmission\": \"24.4K\", \"totalAcceptedRaw\": 11438, \"totalSubmissionRaw\": 24448, \"acRate\": \"46.8%\"}",
|
||||
"stats": "{\"totalAccepted\": \"11.8K\", \"totalSubmission\": \"25.2K\", \"totalAcceptedRaw\": 11824, \"totalSubmissionRaw\": 25163, \"acRate\": \"47.0%\"}",
|
||||
"hints": [
|
||||
"在这里用一些例子做些数学计算。这一对数值有什么需求?你发现它们的值有什么特点?",
|
||||
"当你把一个值a从数组A移动到数组B时,A的和减少了a, B的和增加了a。当你交换两个值时会发生什么?交换两个值并得到相同的和需要什么?",
|
||||
|
||||
Reference in New Issue
Block a user