Leetcode no. 231
来源:互联网 发布:sql2000数据库安装 编辑:程序博客网 时间:2024/06/06 00:58
231. Power of Two
Given an integer, write a function to determine if it is a power of two.
public class Solution { public boolean isPowerOfTwo(int n) { return n>0 && (n & (n-1))==0; }}
0 0
- Leetcode no. 231
- Leetcode NO.231 Power of Two
- LeetCode--No.231--Power Of Two
- LeetCode No.231 Power of Two
- LeetCode No.11 ~No.12
- Leetcode NO.78 Subsets
- Leetcode NO.77 Combinations
- Leetcode NO.46 Permutations
- 【leetcode】No. 235 LCABST
- LeetCode no. 35
- Leetcode no. 37
- Leetcode no. 279
- Leetcode no. 335
- Leetcode no. 283
- Leetcode no. 181 (sql)
- Leetcode no. 40
- Leetcode no. 238
- Leetcode no. 26
- 低功耗蓝牙(BLE)
- PHP算法——冒泡排序
- Theano下怎么配置GPU和cudnn加速
- NJSD2016《 高效率的Android开发》PPT分享
- 用两个栈实现队列与二叉树的镜像
- Leetcode no. 231
- python初学(3)列表(List)应用(待续ing)
- assert和if使用的环境及使用场景
- 【LQ系列】BEGIN-1~BEGIN-4
- jmx实例
- android stdio 设置屏幕旋转后保存数据
- 关于JAVA的那些事儿
- 20—小结(Week)
- Scily 1002