@@ -0,0 +1,589 @@
+package com.anuragkapur.leetcode;%0A%0A/**%0A * Problem #226 https://leetcode.com/problems/invert-binary-tree/%0A *%0A * @author anuragkapur%0A */%0Apublic class InvertBinaryTree %7B%0A%0A    public TreeNode invertTree(TreeNode root) %7B%0A        if(root == null)%0A            return root;%0A        TreeNode temp = root.left;%0A        root.left = root.right;%0A        root.right = temp;%0A        invertTree(root.left);%0A        invertTree(root.right);%0A        return root;%0A    %7D%0A%0A    private class TreeNode %7B%0A        int val;%0A        TreeNode left;%0A        TreeNode right;%0A        TreeNode(int x) %7B val = x; %7D%0A    %7D%0A%7D%0A

Add problem #226 solution