随笔分类 -  Python

摘要:class Solution: def toGoatLatin(self, S): """ :type S: str :rtype: str """ sList = S.split() ... 阅读全文
posted @ 2018-05-05 15:33 kkkkkksssss 阅读(110) 评论(0) 推荐(0)
摘要:1.个人所做代码class Solution: def generate(self, numRows): """ :type numRows: int :rtype: List[List[int]] """... 阅读全文
posted @ 2018-05-04 20:44 kkkkkksssss 阅读(123) 评论(0) 推荐(0)
摘要:class Solution: def isAllIn(self, word, strs): flag = True for s in word: if s not in strs: ... 阅读全文
posted @ 2018-05-04 11:29 kkkkkksssss 阅读(129) 评论(0) 推荐(0)
摘要:class Solution: def uniqueMorseRepresentations(self, words): """ :type words: List[str] :rtype: int """... 阅读全文
posted @ 2018-05-04 09:21 kkkkkksssss 阅读(134) 评论(0) 推荐(0)
摘要:class Solution: def findComplement(self, num): """ :type num: int :rtype: int """ binaryX = bin(... 阅读全文
posted @ 2018-05-03 22:21 kkkkkksssss 阅读(103) 评论(0) 推荐(0)
摘要:class Solution: def hammingDistance(self, x, y): """ :type x: int :type y: int :rtype: int """ ... 阅读全文
posted @ 2018-05-03 21:34 kkkkkksssss 阅读(117) 评论(0) 推荐(0)
摘要:class Solution: def judgeCircle(self, moves): """ :type moves: str :rtype: bool """ count_R = 0 ... 阅读全文
posted @ 2018-05-03 20:23 kkkkkksssss 阅读(105) 评论(0) 推荐(0)
摘要:Python初学,画风难免清奇……class Solution(object): def numJewelsInStones(self, J, S): count = 0 for j in J : for s i... 阅读全文
posted @ 2018-05-03 20:08 kkkkkksssss 阅读(93) 评论(0) 推荐(0)