2014年10月29日

摘要: Determine whether an integer is a palindrome. Do this without extra space.这题貌似解法挺多,直接用简单的把数倒置,没有考虑数据溢出的问题,如需解决可以把转置数设为long long即可。另外方法可以用到前后匹配、递归比较等。 ... 阅读全文
posted @ 2014-10-29 11:10 yellow one 阅读(101) 评论(0) 推荐(0)
 
摘要: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Pana... 阅读全文
posted @ 2014-10-29 11:07 yellow one 阅读(153) 评论(0) 推荐(0)