本文共 124 字,大约阅读时间需要 1 分钟。
1 bool isPowerOfTwo(int n)2 {3 return n > 0 && !(n & (n - 1));4 }
转载于:https://www.cnblogs.com/mengwang024/p/4623819.html