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
|
175 Discussions
|
Please Login in order to post a comment
I read the problem and had a plan for the implementation but then had to go pick up my daughter at daycare. As I was walking there, I realized that this is just a NOT... doh!!
Swift:
java 8
public static long flippingBits(long n) { int a = (int) n; return Integer.toUnsignedLong(~a); }
He aprendido sobre el manejo de los sistemas numericos
C++: