C++ 100% FAST + SHORT + HIGHLY READABLE CODE
PLZ UPVOTE IF YOU LIKED IT\n\n```\nclass Solution {\npublic:\n    bool flipEquiv(TreeNode root1, TreeNode root2) {\n        if(root1==NULL && root2==NULL)return
**PLZ UPVOTE IF YOU LIKED IT**\n\n```\nclass Solution {\npublic:\n    bool flipEquiv(TreeNode* root1, TreeNode* root2) {\n        if(root1==NULL && root2==NULL)return true;\n        if(!root1 || !root2)return false;\n        if(root1->val!=root2->val)return false;\n\t\t\n        return (flipEquiv(root1->left,root2->left)&&flipEquiv(root1->right,root2->right))\n                 ||(flipEquiv(root1->left,root2->right)&&flipEquiv(root1->right,root2->left));\n        \n    }\n};
['C', 'C++']