[Python] 6-line solutoin beats 98%
python\ndef isBalanced(self, root: TreeNode, h=1) -> bool:\n    if not root: return h\n    l = self.isBalanced(root.left, h+1)\n    if not l: return\n    r = se
```python\ndef isBalanced(self, root: TreeNode, h=1) -> bool:\n    if not root: return h\n    l = self.isBalanced(root.left, h+1)\n    if not l: return\n    r = self.isBalanced(root.right, h+1)\n    if not r: return\n    return abs(l-r) <= 1 and max(l, r)\n```
['Python', 'Python3']