ctci/04. Trees and graphs/4.4. check_balanced.md

206 B

4.4. Check balanced

Check if a binary tree is balanced. For the purposes of this question, a balanced tree is a tree such that the heights of the two subtrees of any node never differ by more than one.