中序遍历二叉树加入vector中,然后在vector中通过下标顺序访问节点,修改指针 /* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) { } };*/ class Solution { public: vector<TreeNode*> v; TreeNode* Convert(TreeNode* pRootOfTree) { if...