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
Flipping bits
Sort by
recency
|
762 Discussions
|
Please Login in order to post a comment
long flippingBits(long n) { int binary_array[32]; int count=0; int index=31; while(count<32){ binary_array[index--]=n%2; n=n/2; count++; }
}
Bitwise XOR operator in C/C++
Python:
C++ SOLUTION , Easiest