mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-21 13:06:47 +08:00
update
This commit is contained in:
@@ -9,10 +9,10 @@
|
||||
"titleSlug": "sort-array-by-parity",
|
||||
"content": "<p>Given an integer array <code>nums</code>, move all the even integers at the beginning of the array followed by all the odd integers.</p>\n\n<p>Return <em><strong>any array</strong> that satisfies this condition</em>.</p>\n\n<p> </p>\n<p><strong>Example 1:</strong></p>\n\n<pre>\n<strong>Input:</strong> nums = [3,1,2,4]\n<strong>Output:</strong> [2,4,3,1]\n<strong>Explanation:</strong> The outputs [4,2,3,1], [2,4,1,3], and [4,2,1,3] would also be accepted.\n</pre>\n\n<p><strong>Example 2:</strong></p>\n\n<pre>\n<strong>Input:</strong> nums = [0]\n<strong>Output:</strong> [0]\n</pre>\n\n<p> </p>\n<p><strong>Constraints:</strong></p>\n\n<ul>\n\t<li><code>1 <= nums.length <= 5000</code></li>\n\t<li><code>0 <= nums[i] <= 5000</code></li>\n</ul>\n",
|
||||
"translatedTitle": "按奇偶排序数组",
|
||||
"translatedContent": "<p>给定一个非负整数数组 <code>A</code>,返回一个数组,在该数组中, <code>A</code> 的所有偶数元素之后跟着所有奇数元素。</p>\n\n<p>你可以返回满足此条件的任何数组作为答案。</p>\n\n<p> </p>\n\n<p><strong>示例:</strong></p>\n\n<pre><strong>输入:</strong>[3,1,2,4]\n<strong>输出:</strong>[2,4,3,1]\n输出 [4,2,3,1],[2,4,1,3] 和 [4,2,1,3] 也会被接受。\n</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ol>\n\t<li><code>1 <= A.length <= 5000</code></li>\n\t<li><code>0 <= A[i] <= 5000</code></li>\n</ol>\n",
|
||||
"translatedContent": "<p>给你一个整数数组 <code>nums</code>,将 <code>nums</code> 中的的所有偶数元素移动到数组的前面,后跟所有奇数元素。</p>\n\n<p>返回满足此条件的 <strong>任一数组</strong> 作为答案。</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre>\n<strong>输入:</strong>nums = [3,1,2,4]\n<strong>输出:</strong>[2,4,3,1]\n<strong>解释:</strong>[4,2,3,1]、[2,4,1,3] 和 [4,2,1,3] 也会被视作正确答案。\n</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre>\n<strong>输入:</strong>nums = [0]\n<strong>输出:</strong>[0]\n</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>1 <= nums.length <= 5000</code></li>\n\t<li><code>0 <= nums[i] <= 5000</code></li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Easy",
|
||||
"likes": 238,
|
||||
"likes": 241,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -149,7 +149,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"65K\", \"totalSubmission\": \"92.9K\", \"totalAcceptedRaw\": 65017, \"totalSubmissionRaw\": 92889, \"acRate\": \"70.0%\"}",
|
||||
"stats": "{\"totalAccepted\": \"66.5K\", \"totalSubmission\": \"94.9K\", \"totalAcceptedRaw\": 66457, \"totalSubmissionRaw\": 94947, \"acRate\": \"70.0%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
|
Reference in New Issue
Block a user