Skip to content

Commit dec08ca

Browse files
committed
fixed balanced bst
1 parent 2cc30eb commit dec08ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

14. Questions/leetcode 110 - balanced bst.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def __init__(self, val=0, left=None, right=None):
1010
self.right = right
1111

1212
class Solution:
13-
def isBalanced(self, root: Optional[TreeNode]) -> bool:
13+
def isBalanced(self, root) -> bool:
1414
def dfs(root):
1515
if root is None: return [True, 0]
1616

0 commit comments

Comments
 (0)