mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-08 16:54:50 +08:00
fix: Correct function type
This commit is contained in:
@ -298,7 +298,7 @@ class Solution:
|
|||||||
return self.traversal(root, p, q)
|
return self.traversal(root, p, q)
|
||||||
```
|
```
|
||||||
|
|
||||||
迭代法(版本二)精简
|
递归法(版本二)精简
|
||||||
```python
|
```python
|
||||||
class Solution:
|
class Solution:
|
||||||
def lowestCommonAncestor(self, root, p, q):
|
def lowestCommonAncestor(self, root, p, q):
|
||||||
|
Reference in New Issue
Block a user