简单的题, 直接上代码.
class Solution { public: int mySqrt(int x) { return sqrt(x); } };
class Solution { public int mySqrt(int x) { return (int)Math.sqrt(x); } }
leetcode 69 x 的平方根
原文:https://www.cnblogs.com/eat-too-much/p/14823914.html