这题简单的,用系统函数,这个是我的代码 我排名后面的原因是提交次数太多,sad /** * @param {number} x * @return {number} */ var mySqrt = function(x) { return Math.floor(Math.sqrt(x)); };