摘要: 题目描述: 方法一: class Solution: def numOfWays(self, n: int) -> int: mod = int(1e9+7) s = ['ryr','ryg','rgr','rgy','yrg','ygr','ygy','yry','gry','grg','gyr' 阅读全文
posted @ 2020-04-12 20:09 oldby 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 题目描述: 自己的提交: class Solution: def entityParser(self, text: str) -> str: text = text.replace(""","\"") text = text.replace("'","\'") text = te 阅读全文
posted @ 2020-04-12 19:46 oldby 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 题目描述: 自己的提交: class Solution: def processQueries(self, queries: List[int], m: int) -> List[int]: l = [i for i in range(1,m+1)] ans = [] for i in querie 阅读全文
posted @ 2020-04-12 19:33 oldby 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 题目描述: 自己的提交: class Solution: def stringMatching(self, words: List[str]) -> List[str]: def strStr(haystack: str, needle: str) -> int: if not needle:ret 阅读全文
posted @ 2020-04-12 19:27 oldby 阅读(141) 评论(0) 推荐(0) 编辑