摘要: class Solution: def exist(self, board: List[List[str]], word: str) -> bool: def dfs(i, j, k): if not 0 <= i < len(board) or not 0 <= j < len(board[0]) 阅读全文
posted @ 2020-04-06 11:46 USTC丶ZCC 阅读(144) 评论(0) 推荐(0) 编辑
摘要: class Solution: def buildTree(self, preorder: List[int], inorder: List[int]) -> TreeNode: if not preorder or not inorder: return None root = TreeNode( 阅读全文
posted @ 2020-04-06 09:41 USTC丶ZCC 阅读(129) 评论(0) 推荐(0) 编辑