会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
SandaiYoung
博客园
首页
新随笔
联系
管理
订阅
2024年2月8日
代码随想录算法训练营第十六天| 104.二叉树的最大深度 559.n叉树的最大深度 111.二叉树的最小深度 222.完全二叉树的节点个数
摘要: 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)
编辑
公告