Skip to content

Commit 921f6d4

Browse files
authored
Update 0235-lowest-common-ancestor-of-a-binary-search-tree.js
1 parent 6463722 commit 921f6d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/0235-lowest-common-ancestor-of-a-binary-search-tree.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/
3-
* Time O(H) <equal to O(logN)> | Space O(H)
3+
* Time O(H) | Space O(H)
44
* @param {TreeNode} root
55
* @param {TreeNode} p
66
* @param {TreeNode} q
@@ -18,7 +18,7 @@
1818

1919
/**
2020
* https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/
21-
* Time O(H) <equal to O(logN)> | Space O(1)
21+
* Time O(H) | Space O(1)
2222
* @param {TreeNode} root
2323
* @param {TreeNode} p
2424
* @param {TreeNode} q

0 commit comments

Comments
 (0)