paiweilai1984/MyLeetCode — pull request #1 by niuqingpeng (2013-09-04 00:27:34+00:00)
Title: Efficient way to do this

Each node is accessed multiple times in this implementation.
A more efficient is to design a getBalancedTreeHeight function which return height of the tree if tree is balanced or return -1 if tree is not balanced.