Flipping bits

  • + 0 comments
    function flippingBits(n) {
      let q = (2 ** 32)-1
      let ans = q-n
      return ans
    }