摘要: class Solution: def treeHeight(self,root): if root==None: return 0 if root.left==None and root.right==None: return 1 lh=self.treeHeight(root.left) ... 阅读全文
posted @ 2019-01-03 11:06 findtruth123 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 一次可以跳一个,也可以跳n个 阅读全文
posted @ 2019-01-03 10:19 findtruth123 阅读(148) 评论(0) 推荐(0) 编辑
摘要: dp[n]=dp[n-1]+dp[n-2] 阅读全文
posted @ 2019-01-03 10:11 findtruth123 阅读(182) 评论(1) 推荐(0) 编辑