import { TreeNode } from './BinaryTree' ; param { TreeNode } root function Mirror ( root ) { if ( root ) { let temp = root . right ; root . right = root . left ; root . left = temp ; Mirror ( root . right ) ; Mirror ( root . left ) ; } } export default Mirror ;