/* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) { } };*/ class Solution { public: bool Ergodic(TreeNode*pRoot1,TreeNode*pRoot2){ if(pRoot2==nullptr){ return true; } if(pRoot1==nullptr){ return false; ...