mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-09 01:11:42 +08:00
update
This commit is contained in:
@@ -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": [
|
||||
"交换每一对意味着把偶数位移到左边,奇数位移到右边。你能把这个问题分成几个部分吗?",
|
||||
"你能创建一个代表偶数位的数字吗?那么你可以将偶数位移过一位吗?",
|
||||
|
Reference in New Issue
Block a user