![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
二叉树
二叉树
深海鱼流浪去了北冰洋
这个作者很懒,什么都没留下…
展开
-
实验平衡二叉树(一)
对一下数据进行实验: 16 7 8 9 10 4 3 28 19 47 6原创 2020-09-30 10:51:21 · 145 阅读 · 0 评论 -
实验平衡二叉树(二)
递归求二叉树的深度【伪代码】 public int getDeepLength(TreeNode node){ //定义左右子树高度 int llen = 0,rlen=0; //定义初始高度 if(node==null){ return 0; }else{ //递归左子树 llen = getDeepLength(node ->lchilds); rlen = getDee原创 2020-08-18 16:28:35 · 94 阅读 · 0 评论