- 博客(6)
- 收藏
- 关注
原创 LeetCode 13. Roman to Integer
Roman to Integer Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999.给定一个罗马数字,将其转换为整数。输入保证在1到3999的范围内。个人思路:说实话,刚看到这个题目的时候我是一脸茫然的。罗马数字?我似乎只认识
2017-12-14 21:58:38
193
原创 LeetCode 9.Palindrome Number
Palindrome Number Determine whether an integer is a palindrome. Do this without extra space.确定一个整数是否是回文。不使用额外的空间来解决它。一些提示:负整数可能是回文?如果您正在考虑将整数转换为字符串,请注意使用额外空间的限制。你也可以尝试颠倒一个整数。但是,如果您已经解决了“反转整数”问题,则
2017-12-13 21:23:46
186
原创 LeetCode 7.Reverse Integer
Reverse Integer Given a 32-bit signed integer, reverse digits of an integer.给定一个32位有符号整数,求整数的反转数字。 Example 1:Input: 123Output: 321Example 2:Input: -123Output: -321Example 3:Input: 120Output: 21
2017-12-13 14:02:11
256
原创 LeetCode 1.The Sum
1.The Sum 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 exactly one solution, and you may n
2017-12-12 22:11:37
263
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人