/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ void preorder(int* ret, struct TreeNode* root, int *returnSize){ if(root == NULL){ return ; } ret[(*returnSize)++] = root->val; preorder(ret, root->left, returnSize); ...