We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Flipping bits
- Discussions
Flipping bits
Flipping bits
Sort by
recency
|
163 Discussions
|
Please Login in order to post a comment
i mean we can just return ~n & 0xFFFFFFFF.........thats it....you are all set
Java:
public static long flippingBits(long n) { // Write your code here return ~n & 0xFFFFFFFFL; }