摘要: atoi问题leetcodejavaatoi 1.问题描述Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself wha... 阅读全文
posted @ 2017-09-04 13:29 流泉滴沙 阅读(393) 评论(0) 推荐(0)
摘要: Palindrome Number问题leetcodejava回文数 1.问题描述Determine whether an integer(整数) is a palindrome(回文). Do this without extra space.题目翻译:确定一个整数是不是回文数,不能使用额外的空间。 2.解题思路1.把整数直接转成字符串,然后把字符串reverse一下,比较两个字符是否相等... 阅读全文
posted @ 2017-09-04 11:19 流泉滴沙 阅读(214) 评论(0) 推荐(0)