/**
 * Created by youweilu on 4/9/17.
 */
public class HeightofaTree{
    private static int treeHeight(Node n){
        if(n==null)return 0;
        return 1+Math.max(treeHeight(n.getLeft()),treeHeight(n.getRight()));
    }
}

@@ -4,37 +4,318 @@
 %0A * 
-Created by youweilu on 4/9/17
+PROBLEM%0A * The height of a tree (binary or not) is defined to be the maximum distance from the root node to any leaf node. The%0A * tree in Figure 5-2, for example, has a height of 4 because the path from A to F, G, or H involves four nodes. Write%0A * a function to calculate the height of an rbitrary binary tree
 .%0A *

Add problem description of height of tree.