
LeetCode p69 Sqrt(x) 题解
1.题目:
Implement int sqrt(int x).
Compute and return the square root of x.
题意:
计算某个数的平方根。
2.解题思路:
见代码。。直接套前面那题了。
3.代码
1 |
|

Implement int sqrt(int x).
Compute and return the square root of x.
题意:
计算某个数的平方根。
见代码。。直接套前面那题了。
1 |
|
近期评论