随笔分类 - Python
摘要:class Solution: def toGoatLatin(self, S): """ :type S: str :rtype: str """ sList = S.split() ...
阅读全文
摘要:1.个人所做代码class Solution: def generate(self, numRows): """ :type numRows: int :rtype: List[List[int]] """...
阅读全文
摘要:class Solution: def isAllIn(self, word, strs): flag = True for s in word: if s not in strs: ...
阅读全文
摘要:class Solution: def uniqueMorseRepresentations(self, words): """ :type words: List[str] :rtype: int """...
阅读全文
摘要:class Solution: def findComplement(self, num): """ :type num: int :rtype: int """ binaryX = bin(...
阅读全文
摘要:class Solution: def hammingDistance(self, x, y): """ :type x: int :type y: int :rtype: int """ ...
阅读全文
摘要:class Solution: def judgeCircle(self, moves): """ :type moves: str :rtype: bool """ count_R = 0 ...
阅读全文
摘要:Python初学,画风难免清奇……class Solution(object): def numJewelsInStones(self, J, S): count = 0 for j in J : for s i...
阅读全文

浙公网安备 33010602011771号