会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
起点菜鸟
博客园
首页
新随笔
联系
订阅
管理
2018年4月1日
防止溢出 LeetCode69.Sqrt(x)
摘要: 题目描述: Implement int sqrt(int x). Compute and return the square root of x. x is guaranteed to be a non-negative integer. 思路:二分查找,时间复杂度O(logn)。 if(mid的平
阅读全文
posted @ 2018-04-01 10:33 起点菜鸟
阅读(146)
评论(0)
推荐(0)
公告