- 博客(4)
- 收藏
- 关注
原创 (13&14)-LeetCode-罗马数字转整数&最长公共前缀-python
(13&14)-LeetCode-罗马数字转整数&最长公共前缀-python 13.题目如下 代码 class Solution: def romanToInt(self, s): """ :type s: str :rtype: int IMMM """ #考虑...
2018-09-06 21:18:10 368
原创 (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 393
原创 (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 190
原创 (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 416
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人