摘要: Reverse Number without extra spaceclass Solution {public: bool isPalindrome(int x) { // Start typing your C/C++ solution below // DO NOT write int main() function if (x 9; y /= 10, w *= 10) ; for (;w > 1; w /= 100) { //去掉2位所有 w/=100 if (x % 10 != x /... 阅读全文
posted @ 2013-09-09 22:36 一只会思考的猪 阅读(208) 评论(0) 推荐(0)