代码1: classSolution { public: boolHasSubtree(TreeNode* pRoot1, TreeNode* pRoot2) { if(!pRoot1) returnfalse; if(!pRoot2) returnfalse; return( dfs(pRoot1,pRoot2)) || HasSubtree(pRoot1->left, pRoot2) || HasSubtree(pRoo...