Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
LeetCodeAnimation
Commits
85085171
Commit
85085171
authored
May 29, 2019
by
luzhzh
Browse files
fixed 201 -1 can not shift bug
parent
dc285aa7
Changes
1
Hide whitespace changes
Inline
Side-by-side
notes/LeetCode第201号问题:数字范围按位与.md
View file @
85085171
...
...
@@ -48,7 +48,7 @@
class
Solution
{
public:
int
rangeBitwiseAnd
(
int
m
,
int
n
)
{
int
d
=
INT_MAX
;
unsigned
int
d
=
INT_MAX
;
while
((
m
&
d
)
!=
(
n
&
d
))
{
d
<<=
1
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment