摘要: 题目描述: Determine whether an integer is a palindrome. Do this without extra space. 解题分析: ^_^个人觉得这道题没有什么可分析的,直接看代码就能明白^_^. 具体代码: 阅读全文
posted @ 2016-06-08 01:01 godlei 阅读(189) 评论(0) 推荐(0)
摘要: 题目描述: Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 解题思路: 这道题比较简单,只要注意两个问题:1,输入可能有123,-123两种情况。2,可能会出现值溢出 阅读全文
posted @ 2016-06-08 00:57 godlei 阅读(188) 评论(0) 推荐(0)
摘要: 题目描述: The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed 阅读全文
posted @ 2016-06-08 00:51 godlei 阅读(241) 评论(0) 推荐(0)