We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9faf96b commit eb7d9aaCopy full SHA for eb7d9aa
lowest-common-ancestor-of-a-binary-search-tree/aa601.py
@@ -19,4 +19,4 @@ def lowestCommonAncestor(self, root: 'TreeNode', p: 'TreeNode', q: 'TreeNode') -
19
elif p.val > root.val and q.val > root.val:
20
root = root.right
21
else:
22
- return root
+ return root
0 commit comments