贴一下三面题目写的代码,面试写的很笨蛋,还可以优化,但是没时间了,编辑:好像不是最优解 public class Main { public static void main(String[] args) { System.out.println("Hello World!"); // 自己写案例 TreeNode head = new TreeNode(1); head.left = new TreeNode(2); head.right = new TreeNode(3); head.l...