摘要:
原题链接 1 class Solution: 2 def pathSum(self, root: TreeNode, sum: int) -> List[List[int]]: 3 ans,tmp = [],[] 4 def helper(root,sum): 5 if not root:retur 阅读全文
摘要:
原题链接 1 class Solution: 2 def sortedArrayToBST(self, nums: List[int]) -> TreeNode: 3 l,r = 0,len(nums)-1 4 def helper(left,right): 5 root = None 6 if l 阅读全文