Power of 4 (C++) | 5 line easy code
		if(num==0) return false;
        double storeLogValue= log(num)/log(4);
        if(storeLogValue == trunc(storeLogValue))
            return true;
        return false;
Comments (0)