-- coding:utf-8 -- class TreeNode: def init(self, x): self.val = x self.left = None self.right = None class Solution: def IsBalanced(self,pRoot): if pRoot is None: return True,0 else: booll,depthl=self.IsBalanced(pRoot.left) boolr,depthr=self.IsBalan...