英语打卡:
LeetCode打卡:69.x的平方根
class Solution {
public int mySqrt(int x) {
int i = 1;
if(x==0){return 0;}
while (true){
if(i<=x/i){
i++;
}
else break;
}
return i-1;
}
}