会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Grandyang
仰天长啸仗剑红尘,冬去春来寒暑几更...
博客园
首页
新随笔
联系
订阅
管理
2015年7月6日
[LeetCode] Power of Two 判断2的次方数
摘要: Given an integer, write a function to determine if it is a power of two. Example 1: Example 2: Example 3: 这道题让我们判断一个数是否为2的次方数,而且要求时间和空间复杂度都为常数,那么对于这种玩
阅读全文
posted @ 2015-07-06 04:40 Grandyang
阅读(21139)
评论(5)
推荐(2)
公告