摘要: 题10: 回溯:另:动态规划复杂度更低 class Solution: def isMatch(self, s: str, p: str) -> bool: def helper(s,p): if not p: return not bool(s) if len(p)>=2 and p[1]=="* 阅读全文
posted @ 2019-10-22 18:10 oldby 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 二叉树的中序遍历: 迭代: 递归: 另: 二叉树的前序遍历: 递归: 迭代: 二叉树的后序遍历: 迭代1: 迭代2: 二叉树的层次遍历: 二叉树的锯齿形遍历: 递归: 迭代: 阅读全文
posted @ 2019-10-22 11:13 oldby 阅读(190) 评论(0) 推荐(0) 编辑