网站首页 站内搜索

搜索结果

查询Tags标签: LeetCode104,共有 2条记录
  • LeetCode104-二叉树的最大深度

    原题链接:https://leetcode-cn.com/problems/maximum-depth-of-binary-tree/ 解题思路:递归 代码:1 # Definition for a binary tree node.2 # class TreeNode:3 # def __init__(self, val=0, left=None, right=None):4 # self.val = val5 # self.…

    2022/1/11 23:36:45 人评论 次浏览
  • LeetCode104-二叉树的最大深度

    原题链接:https://leetcode-cn.com/problems/maximum-depth-of-binary-tree/ 解题思路:递归 代码:1 # Definition for a binary tree node.2 # class TreeNode:3 # def __init__(self, val=0, left=None, right=None):4 # self.val = val5 # self.…

    2022/1/11 23:36:45 人评论 次浏览
扫一扫关注最新编程教程