You are viewing a single comment's thread. Return to all comments →
Java Solution:
for (int i = 0; i < 32; i++) n = (n ^ (1 << i)); return Long.parseLong(Long.toUnsignedString(n, 2).substring(32), 2);
Seems like cookies are disabled on this browser, please enable them to open this website
Flipping bits
You are viewing a single comment's thread. Return to all comments →
Java Solution: