//分两步,第一步重建二叉树,第二步,层序遍历二叉树,取每一层最右边的节点即为右视图 public int[] solve (int[] xianxu, int[] zhongxu) { // write code here TreeNode root = reBuild(xianxu,0,xianxu.length-1,zhongxu,0, zhongxu.length-1); int[] res = cenxu(root); return res; } ...