/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; {1,2,4,7,3,5,6,8} {4,7,2,1,5,3,8,6} */ #include <vector> class Solution { public: TreeNode* reConstructBinaryTree(vector<int> p...