您当前的位置: 首页 > 

231. 2的幂

宝哥大数据 发布时间:2019-10-28 10:19:46 ,浏览量:3

231. 2的幂

1、移位
class Solution(object):
    def isPowerOfTwo(self, n):
        """
        :type n: int
        :rtype: bool
        """
        c = 1
        while c             
关注
打赏
1688896170
查看更多评论
0.0498s