摘要:
代码一 class Solution(object): def checkIfExist(self, arr): """ :type arr: List[int] :rtype: bool """ if not arr: return True if arr.count(0) > 1: return 阅读全文
posted @ 2020-09-30 15:01
人间烟火地三鲜
阅读(154)
评论(0)
推荐(0)
摘要:
代码一 用list或者字符串方式返回二叉树的所有路径:https://www.cnblogs.com/panweiwei/p/13752895.html class Solution(object): def pathSum(self, root, sum): """ :type root: Tre 阅读全文
posted @ 2020-09-30 14:57
人间烟火地三鲜
阅读(146)
评论(0)
推荐(0)
摘要:
一、用list返回二叉树的所有路径 class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): def findAllPa 阅读全文
posted @ 2020-09-30 08:55
人间烟火地三鲜
阅读(293)
评论(0)
推荐(0)

浙公网安备 33010602011771号