A flip operation picks any node of a binary tree and swaps its left and right child subtrees. Two trees are flip equivalent when some number of flips turns the first tree into the second. Given the roots of two binary trees whose values are all unique, return true if they are flip equivalent and false otherwise.
A flip operation picks any node of a binary tree and swaps its left and right child subtrees. Two trees are flip equivalent when some number of flips turns the first tree into the second. Given the roots of two binary trees whose values are all unique, return true if they are flip equivalent and false otherwise.