Tripadvisor interview question

Find whether a tree is balanced

Interview Answer

Anonymous

Feb 2, 2015

Messed up my response. Correct answer was: create a helper function to find the height and then create a recursive function to check on every subtree of the tree.