摘要: import java.util.LinkedList;import java.util.Queue;public class judgeTree { public static boolean judge(TreeNode root){ if(root == null) return true; 阅读全文
posted @ 2015-09-22 23:50 zhuoyu05 阅读(463) 评论(0) 推荐(0) 编辑
摘要: public class TreeNode { TreeNode right; TreeNode left; int val;} import java.util.Stack;public class PreOrder { /* * 递归 */ public void preorder(TreeNo 阅读全文
posted @ 2015-09-22 21:45 zhuoyu05 阅读(162) 评论(0) 推荐(0) 编辑