标签:mys sqrt code color return int nbsp long col
1 class Solution { 2 public: 3 int mySqrt(int x) { 4 long res = x; 5 while (res * res > x) { 6 res = (res + x / res) / 2; 7 } 8 return res; 9 } 10 };
标签:mys sqrt code color return int nbsp long col
原文地址:https://www.cnblogs.com/cwfzzz/p/8955253.html