首页
mac
it
登录
6mi
u
盘
搜
搜 索
it
腾讯精选43--python
腾讯精选43--python
mac
2022-06-30
115
class
Solution
(
object
)
:
def
isPowerOfTwo
(
self
,
n
)
:
""" :type n: int :rtype: bool """
return
n
>
0
and
n
&
(
n
-
1
)
==
0
这个位运算还是挺有意思的 你品 你细品
转载请注明原文地址: https://mac.8miu.com/read-5624.html
最新回复
(
0
)