Skip to content

Commit 5f668ea

Browse files
committed
235. Lowest Common Ancestor of a Binary Search Tree
1 parent 728519d commit 5f668ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • lowest-common-ancestor-of-a-binary-search-tree

lowest-common-ancestor-of-a-binary-search-tree/socow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ def lowestCommonAncestor(
3232
elif p.val > cur.val and q.val > cur.val:
3333
cur = cur.right
3434
else:
35-
return cur
35+
return cur

0 commit comments

Comments
 (0)