《数据结构》树与二叉树.ppt
实现算法(书P168算法5.11) public int getDepth(BiTreeNode T){ } if (T! =null) { } return 0; int lDepth = getDepth(T.getLchild; int rDepth = getDepth(T.getRchild; return 1 + (lDepth > rDepth ? lDepth : rDepth;
下载地址
用户评论