x的平方根(LintCode)

题目来源:LintCode 原题地址:http://www.lintcode.com/zh-cn/problem/sqrtx/ 题目: 实现 int sqrt(int x) 函数,计算并返回 x 的平方根。面试 您在真实的面试中是否遇到过这个题?   Yes 样例 sqrt(3) = 1函数 sqrt(4) = 2spa sqrt(5) = 2code sqrt(10) = 3数学 挑战 O(lo
相关文章
相关标签/搜索