hyp_csu
hyp_csu
全部文章
分类
题解(1)
归档
标签
去牛客网
登录
/
注册
hyp_csu的博客
全部文章
(共1篇)
minimum-depth-of-binary-tree
基本思路:层次遍历二叉树,当找到第一个叶节点返回即可 class Solution { public: int run(TreeNode *root) { if(root == NULL) return 0; int depth = ...
2019-08-13
7
1917