Clean Python Solution
class Solution(object):\n        \n        def height(self,root):\n            if not root: return 0\n            return 1 + max(self.height(root.left), self.he
    class Solution(object):\n        \n        def height(self,root):\n            if not root: return 0\n            return 1 + max(self.height(root.left), self.height(root.right))\n        \n        def isBalanced(self, root):\n            """\n            :type root: TreeNode\n            :rtype: bool\n            """\n            if not root: return True\n            if abs(self.height(root.left) - self.height(root.right)) > 1: return False\n            return self.isBalanced(root.left) and self.isBalanced(root.right)
[]