大佬们给看一下,为什么这个就是不通过啊,我的思想是统计每个叶子节点的层次深度,通过率百分之14 左右 class Solution: # write code here depths=[] def dfs(self,pRoot,depth): if pRoot is None: #this is leaf node self.depths.append(depth) return self.dfs(pRoot.left,depth+1) self.dfs(pRoot.right,depth+1) def IsBalanced_Solution(self, pRoot): """ determ...