Nomura Interview Question

mirror of binary tree

Interview Answer

Anonymous

Mar 16, 2014

void imageBtree(Node root){ if(root == null) return; imageBtree(root.left); imageBtree(root.right); tmp = root.left; root.left = root.right; root.right = tmp; } }