class Solution {
public:
int mySqrt(int x) {
long i=0;
while(i*i<=x)
{
i++;
}
return (int)i-1;
}
};
2023-10-28 17:47:52
class Solution {
public:
int mySqrt(int x) {
long i=0;
while(i*i<=x)
{
i++;
}
return (int)i-1;
}
};