Power of Two
Today I'll just reflect a bit about the next little piece of code public static boolean isPowerOfTwo(int value){ return ((value & -value) == value) } The previous »
Today I'll just reflect a bit about the next little piece of code public static boolean isPowerOfTwo(int value){ return ((value & -value) == value) } The previous »