You are viewing a single comment's thread. Return to all comments →
here is my code of in O(1)-
long flippingBits(long n) { long res = n^(0xffffffff); return res ; }
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 →
here is my code of in O(1)-