* Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: map<int,int>mp;//记录中序遍历的位置,用空间换时间 TreeNode* reConstructBinaryTree(vector<int> pre,vector<int> vin...