You are viewing a single comment's thread. Return to all comments →
def flippingBits(n):
a = '' b = format(n, '032b') for i in b: if i == '1': a += '0' else: a += '1' return int(a, 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 →
def flippingBits(n):