@@ -0,0 +1,406 @@
+public static int maxDepth(TreeNode root) %7B%0A  if(root == null) %7B%0A    return 0;%0A  %7D%0A  return 1 + Math.max(maxDepth(root.left), maxDepth(root.right));%0A%7D%0A%0Apublic static int minDepth(TreeNode root) %7B%0A  if (root == null) %7B%0A    return 0;%0A  %7D%0A  return 1 + Math.min(minDepth(root.left), minDepth(root.right));%0A%7D%0A%0Apublic static boolean isBalanced(TreeNode root) %7B%0A  return (maxDepth(root) - minDepth(root) %3C= 1);%0A%7D%0A

Create BalancedTree.java