342. Power of Four
2016-12-31 本文已影响0人
阿团相信梦想都能实现
class Solution(object):
def isPowerOfFour(self, num):
"""
:type num: int
:rtype: bool
"""
return num>0 and num&num-1==0 and num&int('55555555',16)==num