标签:io re c leetcode public return
public class Solution {
public int reverse(int x) {
int ret=0;
while(x!=0)
{
int t=x%10;
ret=ret*10+t;
x=x/10;
}
return ret;
}
}
leetcode reverse integer,布布扣,bubuko.com
标签:io re c leetcode public return
原文地址:http://www.cnblogs.com/hansongjiang/p/3861421.html