02 2018 档案

摘要:Determine whether an integer is a palindrome. Do this without extra space. 方法一: 思路: 判断一个整数是否为回文结构与Reverse Integer思路几乎相同,稍微修改即可。 方法二: 思路:将x转化为字符串再翻转,再将 阅读全文
posted @ 2018-02-06 17:08 郝文 阅读(128) 评论(0) 推荐(0)
摘要:Given a 32-bit signed integer, reverse digits of an integer. Example 1: Example 2: Example 3: Note:Assume we are dealing with an environment which cou 阅读全文
posted @ 2018-02-01 16:55 郝文 阅读(124) 评论(0) 推荐(0)
摘要:Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex 阅读全文
posted @ 2018-02-01 15:45 郝文 阅读(115) 评论(0) 推荐(0)