given an integer a, find the smallest possible integer b(b>0) such that their bitwise logical AND is zero.
- if a=11(1011) then b=4(0100)
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers25
Suggested Problems
-
2364 Solvers
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1995 Solvers
-
Test if two numbers have the same digits
264 Solvers
-
792 Solvers
-
Natural numbers in string form
1858 Solvers
More from this Author174
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!