Flipping bits

  • + 0 comments

    My Rust approach

    fn flippingBits(n: i64) -> i64 {
        !(n as u32) as i64
    }