摘要: class Node: def __init__(self, val: int = 0, left: 'Node' = None, right: 'Node' = None, next: 'Node' = None): self.val = val self.left = left self.rig 阅读全文
posted @ 2020-06-29 17:45 月为暮 阅读(335) 评论(0) 推荐(0) 编辑
摘要: # 看着大佬的题解做了出来,但写不出来题解 class Solution: def numDistinct(self,s:str,t:str) -> int: n1 = len(s) n2 = len(t) dp = [[0] * (n1 + 1) for _ in range((n2 + 1))] 阅读全文
posted @ 2020-06-29 17:41 月为暮 阅读(216) 评论(0) 推荐(0) 编辑