摘要: 一、两有序数组第k大的数 下面这种可能好理解,但是性能就会比较差 阅读全文
posted @ 2019-06-14 16:46 海平面下的我们 阅读(492) 评论(0) 推荐(0) 编辑
摘要: 一、求高度的函数 public static <T extends Comparable<T>> int height(Node<T> root) { if(root == null) { return 0; }else { return height(root.getLeft())>height( 阅读全文
posted @ 2019-06-14 09:38 海平面下的我们 阅读(114) 评论(0) 推荐(0) 编辑