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
|
149 Discussions
|
Please Login in order to post a comment
I think the fastest solution in python3 is
return abs(n - 4294967295)
In c#, fastest solution:
public static long flippingBits(long n) { return 4294967295 - n;
}
Hey folks, we are working with 32 bits, then in javascript,
def flippingBits(n):