标签:
Implement int sqrt(int x).
int sqrt(int x)
Compute and return the square root of x.
1 class Solution { 2 public: 3 int mySqrt(int x) { 4 return floor(sqrt(x*1.00)); 5 } 6 };
Sqrt(x)
原文地址:http://www.cnblogs.com/amazingzoe/p/4436926.html