//递归的做法,生成bool递归方法,用于递归判断 /* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) { } }; */ #include <cstddef> class Solution { public: bool recursion(TreeNode* root1,TreeNode* root2){ if (root1==NULL&&root2==NULL) { return...