C++ 1-liner
\nbool flipEquiv(TreeNode* r1, TreeNode* r2) {\n  return r1 == r2 || (r1 != nullptr && r2 != nullptr && r1->val == r2->val &&\n    ((flipEquiv(r1->left, r2->rig
```\nbool flipEquiv(TreeNode* r1, TreeNode* r2) {\n  return r1 == r2 || (r1 != nullptr && r2 != nullptr && r1->val == r2->val &&\n    ((flipEquiv(r1->left, r2->right) && flipEquiv(r1->right, r2->left)) ||\n    (flipEquiv(r1->left, r2->left) && flipEquiv(r1->right, r2->right))));\n}\n```
[]