Flipping bits

  • + 0 comments
    function flippingBits(n) {
        // Write your code here
        const maxBits = (2 ** 32) - 1
        return maxBits - n;
    }