You are viewing a single comment's thread. Return to all comments →
def flippingBits(n): return 4294967295 - n
or
def flippingBits(n): a = '{:032b}'.format(0) b = a.translate(a.maketrans("10","01")) #just using other string methods return(int(b,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 →
or