摘要: Implement int sqrt(int x). Compute and return the square root of x. 【题目分析】 这道题目要求求一个整数的开方数,而且结果是返回一个整数。 【思路】 一个整数x的开方整数是什么呢?假设结果是y,那么y*y <= x。 因为肯定存在y 阅读全文
posted @ 2016-10-31 10:30 Black_Knight 阅读(754) 评论(0) 推荐(0) 编辑