摘要: 题目描述: 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)