power_is_two 2022-12-14 浏览 (681) power_is_two.py 源码 class Solution: def isPowerOfTwo(self, n: int) -> bool: return n != 0 and n & (n - 1) == 0 你可能感兴趣的文章 best_time_buy_sell_stock best_time_buy_sell_stock_ii climb_statirs 点赞 (0)