Flipping bits

  • + 0 comments

    Java:

    public static long flippingBits(long n) { // Write your code here return ~n & 0xFFFFFFFFL; }