摘要: package com.tree; import java.util.LinkedList; import java.util.Stack; public class BSTree<T extends Comparable> { public static void main(String[] ar 阅读全文
posted @ 2022-04-22 16:34 scwyfy 阅读(21) 评论(0) 推荐(0) 编辑
摘要: package com.tree; public class TreePrinter { <T> int heightOf(BSTree.BSTNode<T> node) { if(node == null) { return 0; } return Math.max( heightOf(node. 阅读全文
posted @ 2022-04-22 15:20 scwyfy 阅读(53) 评论(0) 推荐(0) 编辑