Flipping bits

  • + 0 comments

    Golang

    func flippingBits(n int64) int64 {
        return n ^ int64(0xFFFFFFFF)
    }