怎么推广我的网站权重查询工具
class Solution
{
public:
int reverse(int x)
{
long long n=0;
if(x==0) return 0;
while(x%10==0)
{
x=x/10;
}
while(x!=0)
{
n=n*10+x%10;
x=x/10;
}
if(n<=-2147483648||n>=2147483647) return 0;
return n;
}
};
class Solution
{
public:
int reverse(int x)
{
long long n=0;
if(x==0) return 0;
while(x%10==0)
{
x=x/10;
}
while(x!=0)
{
n=n*10+x%10;
x=x/10;
}
if(n<=-2147483648||n>=2147483647) return 0;
return n;
}
};