免费网上商城网站建设,廊坊十大名牌模板厂,成都装修设计公司网站,中国10大品牌网官网原题描述
个人解法思路
class Solution {
public:int reverse(int x) {int temp0;//需要返回的最后结果while(x!0){if(tempINT_MAX/10 || tempINT_MIN/10)return 0;temptemp*10x%10; //个位变十位 同理xx/10; //进行降位} return temp;}
};原题描述
个人解法思路
class Solution {
public:int reverse(int x) {int temp0;//需要返回的最后结果while(x!0){if(tempINT_MAX/10 || tempINT_MIN/10)return 0;temptemp*10x%10; //个位变十位 同理xx/10; //进行降位} return temp;}
};