LeetCode: Power of Four Jun 25 2016 12345public class Solution { public boolean isPowerOfFour(int num) { return num > 0 && (num & (num - 1)) == 0 && (0x55555555 & num) != 0; }}