Will Do
Thoughts on technology, the world, and life.

Binary Tree Mirror Equals

Java:

class Node {
    public int value;
    public Node left, right;
    public static boolean mirror(Node x, Node y) {
        if (x == null && y == null) return true;
        if (x == null || y == null) return false;
        return x.value == y.value && mirror(x.left, y.right) && mirror(x.right, y.left);
    }
}
π