领扣刷题
人要有梦想
这个作者很懒,什么都没留下…
展开
-
(7)-LeetCode-反转整数(Reverse Integer)-python
(1)-LeetCode-反转整数(Reverse Integer)-python题目如下 原代码#下面是出错的代码class Solution: def reverse(self, x): """ :type x: int :rtype: int """ ''' 是否负数 ...原创 2018-09-04 14:18:03 · 182 阅读 · 0 评论 -
(9)-LeetCode-回文数(Palindrome Number)-python
(9)-LeetCode-回文数(Palindrome Number)-python题目如下 原代码class Solution: def isPalindrome(self, x): """ :type x: int :rtype: bool """ if x>=0 : ...原创 2018-09-04 15:47:11 · 387 阅读 · 0 评论 -
(1)-LeetCode-两数之和(Two Sum)-python
(1)-LeetCode-两数之和(Two Sum)-python题目如下 原代码class Solution: def twoSum(self, nums, target): """ :type nums: List[int] :type target: int :rtype: List[int] ...原创 2018-09-03 18:17:21 · 408 阅读 · 0 评论 -
(13&14)-LeetCode-罗马数字转整数&最长公共前缀-python
(13&14)-LeetCode-罗马数字转整数&最长公共前缀-python13.题目如下 代码class Solution: def romanToInt(self, s): """ :type s: str :rtype: int IMMM """ #考虑...原创 2018-09-06 21:18:10 · 361 阅读 · 0 评论