LeetCode 231. Power of Two
来源:互联网 发布:神漫画软件下载 编辑:程序博客网 时间:2024/05/22 06:20
class Solution {public: bool isPowerOfTwo(int n) { if(n == 0 ) return false; int a = log(n)/log(2); if(pow(2,a) == n) return true; else return false; }};
0 0
- [leetcode] 231.Power of Two
- LeetCode ||231. Power of Two
- [LeetCode]231.Power of Two
- Leetcode 231. Power of Two
- leetcode 231. Power of Two
- 231. Power of Two LeetCode
- [LeetCode]231. Power of Two
- [LeetCode]231. Power of Two
- LeetCode 231. Power of Two
- [leetcode] 231. Power of Two
- leetcode 231. Power of Two
- LeetCode *** 231. Power of Two
- leetcode 231. Power of Two
- LeetCode 231. Power of Two
- Leetcode-231. Power of Two
- #leetcode#231. Power of Two
- 231.[Leetcode]Power of Two
- Leetcode 231. Power of Two
- 关于网络
- 订单水平拆库项目
- linux部署mongodb及基本操作
- RatingBar 的使用 以及自定义的RatingBar
- vi 编辑器 命令模式 编辑模式
- LeetCode 231. Power of Two
- 单片机与RS-232的串口通信+VB程序
- 134. Gas Station-贪心算法
- 安装Ubuntu12.04以及sources.list更新源推荐
- 欢迎使用CSDN-markdown编辑器
- C++内存管理
- 骚鸟、骚七能不能超神
- Redis、Memcached简单封装
- 双向链表(非循环)排序