摘要: 104.二叉树的最大深度 题目链接:104. 二叉树的最大深度 - 力扣(LeetCode)n叉树也一样 思路:我的普通递归方法 class Solution { public: int depth(TreeNode* node,int d){ int l=0,r=0; if(node->left= 阅读全文
posted @ 2024-02-08 23:17 SandaiYoung 阅读(3) 评论(0) 推荐(0) 编辑