题解 | #二叉树的镜像#
二叉树的镜像
https://www.nowcoder.com/practice/a9d0ecbacef9410ca97463e4a5c83be7
struct TreeNode* Mirror(struct TreeNode* pRoot ) {
if(!pRoot) return pRoot;
struct TreeNode* temp=pRoot->left;
pRoot->left=pRoot->right;
pRoot->right=temp;
if(pRoot->left)Mirror(pRoot->left);
if(pRoot->right)Mirror(pRoot->right);
return pRoot;
}


