- 博客(4)
- 收藏
- 关注
原创 9. Palindrome Number题目和答案详解
1 题目简述Determine whether an integer is a palindrome. Do this withoutextra space.判断一个整数是否为回文。这样做没有多余的空间。 Could negative integers be palindromes? (ie, -1)负数是否是回文数?(ie,-1) If you are thinkin
2017-11-30 21:53:49 528
原创 13. Roman to Integer题目和答案详解
1 题目简述 Given aroman numeral, convert it to an integer. Input isguaranteed to be within the range from 1 to 3999. 给定一个罗马数字,将其转换为整数。 输入保证在1到3999的范围内。2 答案详解(1) 规则分析 首先,要知道罗马数字有7个:I
2017-11-27 22:46:10 733
原创 7.Reverse Integer题目和答案详解
1 题目简述 Given a 32-bit signed integer, reverse digits of an integer. 给定一个32位有符号整数,反转这个整型数。Example 1: Input: 123 Output: 321Example 2: Input: -123 Output: -321Example 3:
2017-11-23 11:08:11 1311
原创 1.Two Sum题目和答案详解
1题目简述给定一组整数,将两个数的返回指数相加,使它们相加成一个特定的目标。以下为所举的例子: Given nums = [2, 7, 11, 15], target = 9, Because nums[0] + nums[1] = 2 + 7 = 9, return [0, 1].2答案详解(1)解决思想给定一组整数,将两个数的返回指数相
2017-11-21 23:09:42 588
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人