摘要:
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */class Solution {public: TreeNode *build( vector&inorder, vector &postorder,int in_s,int in_e, int pos_s, int pos_e) ... 阅读全文