1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-09 01:11:42 +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>配对交换。编写程序交换某个整数的奇数位和偶数位尽量使用较少的指令也就是说位0与位1交换位2与位3交换以此类推。</p>\n\n<p> <strong>示例1:</strong></p>\n\n<pre>\n<strong> 输入</strong>num = 2或者0b10\n<strong> 输出</strong> 1 (或者 0b01)\n</pre>\n\n<p> <strong>示例2:</strong></p>\n\n<pre>\n<strong> 输入</strong>num = 3\n<strong> 输出</strong>3\n</pre>\n\n<p> <strong>提示:</strong></p>\n\n<ol>\n<li><code>num</code>的范围在[0, 2^30 - 1]之间,不会发生整数溢出。</li>\n</ol>\n",
"isPaidOnly": false,
"difficulty": "Easy",
"likes": 63,
"likes": 64,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
@@ -137,7 +137,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"13.9K\", \"totalSubmission\": \"19.6K\", \"totalAcceptedRaw\": 13919, \"totalSubmissionRaw\": 19631, \"acRate\": \"70.9%\"}",
"stats": "{\"totalAccepted\": \"14.3K\", \"totalSubmission\": \"20.2K\", \"totalAcceptedRaw\": 14339, \"totalSubmissionRaw\": 20233, \"acRate\": \"70.9%\"}",
"hints": [
"交换每一对意味着把偶数位移到左边,奇数位移到右边。你能把这个问题分成几个部分吗?",
"你能创建一个代表偶数位的数字吗?那么你可以将偶数位移过一位吗?",