LeetCode
danhuazhou
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Roman to Integer
Roman to IntegerGiven a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.mycodeclass Solution: def romanToInt(self, s): """ :type s: s...原创 2018-03-08 20:06:03 · 172 阅读 · 0 评论 -
Palindrome Number
Palindrome NumberDetermine whether an integer is a palindrome. Do this without extra space.mycodeclass Solution: def isPalindrome(self, x): """ :type x: int :rtype: bool ...原创 2018-03-08 20:06:45 · 169 阅读 · 0 评论 -
Reverse Integer
Reverse IntegerGiven a 32-bit signed integer, reverse digits of an integer.Note:Assume we are dealing with an environment which could only hold integers within the 32-bit signed integer range. For the...原创 2018-03-08 20:07:08 · 221 阅读 · 0 评论 -
Two Sum
Two SumGiven 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 not use the ...原创 2018-03-08 20:09:04 · 397 阅读 · 0 评论
分享