/* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) { } }; */ class Solution { public: bool ans(TreeNode *p1,TreeNode *p2){ if(p1==nullptr&&p2==nullptr){ return true; ...