• + 0 comments

    Kotlin Solution. Note that the type was changed from Long to UInt

    fun flippingBits(n: UInt): UInt {
        return n.inv()
    }