树--计算树的深度

package com.Tree; import java.util.Stack; /* * 计算二叉树深度方法(递归 和 非递归) */ public class Depth { //recursive depth() public int recDepth(BTNode p) { int ldepth, rdepth; if (p == null) return
相关文章
相关标签/搜索