Mirror the Tree
Easy · Mirror the Tree
You are given the `root` of a binary tree. Turn it into its mirror image: at every node, the left and right subtrees trade places. Return the root of the resulting tree. If the tree is empty, return `None`.…
Solve the problem →