void insert(struct TreeNode* root,int a[],int *x){ if(root->left!=NULL) insert(root->left,a,x); a[*x]=root->val; (*x)++; if(root->right!=NULL) insert(root-&g...