Given inorder and postorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. 题意:根据中序遍历和后序遍历,构建二叉树 思路很清晰,做法很简单,就不讲了. 一开始我写了一个递归的解法,本地测试数据都OK,无奈提交的时候内存超出限制,下面先给出超出内存的代码: /** * Definition for…