2020年3月10日

判断树是否为搜索树

摘要: 搜索树:左节点小于中间节点,中间节点大于右边节点 思路:利用中序遍历 import java.util.ArrayList; import java.util.List; public class Main { private static void temp(Node tree,List<Inte 阅读全文

posted @ 2020-03-10 16:22 努力学习的菜鸡 阅读(211) 评论(0) 推荐(0) 编辑

导航