1.题目 2.思路 思路和LeetCode105类似,见上篇. 3.java代码 //测试 public class BuildTreeUsingInorderAndPostorder { public static void main(String[] args) { int[] postSort={7,4,2,5,8,6,3,1}; int[] inSort={4,7,2,1,5,3,8,6}; System.out.println(new Solution2().buildTree(pos…