File tree Expand file tree Collapse file tree 1 file changed +2
-17
lines changed
solution/0100-0199/0190.Reverse Bits Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Original file line number Diff line number Diff line change 26
26
27
27
<p ><strong >示例 1:</strong ></p >
28
28
29
- <pre >
30
- <strong >输入:</strong > 00000010100101000001111010011100
31
- <strong >输出:</strong > 00111001011110000010100101000000
32
- <strong >解释: </strong >输入的二进制串 <strong >00000010100101000001111010011100 </strong >表示无符号整数<strong > 43261596</strong ><strong >,
33
- </strong > 因此返回 964176192,其二进制表示形式为 <strong >00111001011110000010100101000000</strong >。</pre >
34
-
35
- <p ><strong >示例 2:</strong ></p >
36
-
37
- <pre >
38
- <strong >输入:</strong >11111111111111111111111111111101
39
- <strong >输出:</strong >10111111111111111111111111111111
40
- <strong >解释:</strong >输入的二进制串 <strong >11111111111111111111111111111101</strong > 表示无符号整数 4294967293,
41
- 因此返回 3221225471 其二进制表示形式为 <strong >10111111111111111111111111111111 。</strong ></pre >
42
-
43
- <p ><strong >示例 1:</strong ></p >
44
-
45
29
<pre >
46
30
<strong >输入:</strong >n = 00000010100101000001111010011100
47
31
<strong >输出:</strong >964176192 (00111001011110000010100101000000)
54
38
<strong >输入:</strong >n = 11111111111111111111111111111101
55
39
<strong >输出:</strong >3221225471 (10111111111111111111111111111111)
56
40
<strong >解释:</strong >输入的二进制串 <strong >11111111111111111111111111111101</strong > 表示无符号整数 4294967293,
57
- 因此返回 3221225471 其二进制表示形式为 <strong >10111111111111111111111111111111 。</strong ></pre >
41
+ 因此返回 3221225471 其二进制表示形式为 <strong >10111111111111111111111111111111 。</strong >
42
+ </pre >
58
43
59
44
<p > </p >
60
45
You can’t perform that action at this time.
0 commit comments