摘要: Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo... 阅读全文
posted @ 2014-11-23 13:34 Agentgamer 阅读(145) 评论(0) 推荐(0)
摘要: Determine whether an integer is a palindrome. Do this without extra space.因为都额外空间有限制所以不能把他先转成字符串然后用两个指针扫了。负数不算回文数是因为前面多了个负号么=_= 这样的话我只能想到一个办法,就是反转一个数字... 阅读全文
posted @ 2014-11-23 10:45 Agentgamer 阅读(115) 评论(0) 推荐(0)